From: grichardson Date: Thu, 24 Sep 2009 18:36:25 +0000 (+0200) Subject: Projektsuche bei Lieferscheinen repariert X-Git-Tag: release-2.6.1beta1~278^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=62ec5a1012da2b3b7e207779e1736ca1a55b2b10;p=kivitendo-erp.git Projektsuche bei Lieferscheinen repariert Unter Berichte->Lieferscheine war das SQL Query kaputt wenn man nach einer Projektnummer gesucht hat --- 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}); }