From 0c050c7650dd6ce44a6f4d7a5592f979582c427e Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Wed, 3 Jan 2018 17:19:09 +0100 Subject: [PATCH] =?utf8?q?Formatierung=20und=20unn=C3=B6tiges=20Arrayeleme?= =?utf8?q?nt=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.20.1