From: Werner Hahn Date: Wed, 3 Jan 2018 16:19:09 +0000 (+0100) Subject: Formatierung und unnötiges Arrayelement entfernt X-Git-Tag: release-3.5.4~540 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0c050c7650dd6ce44a6f4d7a5592f979582c427e;p=kivitendo-erp.git Formatierung und unnötiges Arrayelement entfernt --- diff --git a/SL/IC.pm b/SL/IC.pm index 5b5c92add..4254236db 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -314,11 +314,11 @@ sub all_parts { # special case smart search if ($form->{all}) { - $form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost cvar_packaging linetotal); - $form->{l_service} = 1 if($form->{searchitems} eq 'service' || $form->{searchitems} eq ''); - $form->{l_assembly} = 1 if($form->{searchitems} eq 'assembly' || $form->{searchitems} eq ''); - $form->{l_part} = 1 if($form->{searchitems} eq 'part' || $form->{searchitems} eq ''); - $form->{l_assortment} = 1 if($form->{searchitems} eq 'assortment' || $form->{searchitems} eq ''); + $form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost linetotal); + $form->{l_service} = 1 if $form->{searchitems} eq 'service' || $form->{searchitems} eq ''; + $form->{l_assembly} = 1 if $form->{searchitems} eq 'assembly' || $form->{searchitems} eq ''; + $form->{l_part} = 1 if $form->{searchitems} eq 'part' || $form->{searchitems} eq ''; + $form->{l_assortment} = 1 if $form->{searchitems} eq 'assortment' || $form->{searchitems} eq ''; push @where_tokens, "p.partnumber ILIKE ? OR p.description ILIKE ?"; push @bind_vars, (like($form->{all})) x 2; }