From 62ec5a1012da2b3b7e207779e1736ca1a55b2b10 Mon Sep 17 00:00:00 2001 From: grichardson Date: Thu, 24 Sep 2009 20:36:25 +0200 Subject: [PATCH] Projektsuche bei Lieferscheinen repariert Unter Berichte->Lieferscheine war das SQL Query kaputt wenn man nach einer Projektnummer gesucht hat --- SL/DO.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DO.pm b/SL/DO.pm index 48baa7a87..49dbb9f4d 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -81,10 +81,10 @@ sub transactions { } if ($form->{project_id}) { - $query .= + push @where, qq|(dord.globalproject_id = ?) OR EXISTS (SELECT * FROM delivery_order_items doi - WHERE (doi.project_id = ?) AND (oi.delivery_order_id = dord.id))|; + WHERE (doi.project_id = ?) AND (doi.delivery_order_id = dord.id))|; push @values, conv_i($form->{project_id}), conv_i($form->{project_id}); } -- 2.20.1