Warensuche mit Projektnummer/-beschreibung fixen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 8 Nov 2012 12:58:47 +0000 (13:58 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 8 Nov 2012 12:58:47 +0000 (13:58 +0100)
Fixt #1900.

SL/IC.pm

index ff80d76..f5f014b 100644 (file)
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -1008,7 +1008,7 @@ sub all_parts {
   $joins_needed{makemodel}   = 1 if grep { $form->{$_} || $form->{"l_$_"} } @makemodel_filters;
   $joins_needed{mv}          = 1 if $joins_needed{makemodel};
   $joins_needed{cv}          = 1 if $bsooqr;
-  $joins_needed{apoe}        = 1 if $joins_needed{cv}   || grep { $form->{$_} || $form->{"l_$_"} } @apoe_filters;
+  $joins_needed{apoe}        = 1 if $joins_needed{project} || $joins_needed{cv}   || grep { $form->{$_} || $form->{"l_$_"} } @apoe_filters;
   $joins_needed{invoice_oi}  = 1 if $joins_needed{project} || $joins_needed{apoe} || grep { $form->{$_} || $form->{"l_$_"} } @invoice_oi_filters;
 
   # special case for description search.