From 5245f65a3e3ee808994e480cd5061af921b7ad89 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Wed, 3 Jan 2018 12:56:32 +0100 Subject: [PATCH] =?utf8?q?Artikelliste=20bei=20Schnellsuche,=20wenn=20mehr?= =?utf8?q?ere=20Treffer=20vorgeschlagen=20sind=20und=20keiner=20ausgew?= =?utf8?q?=C3=A4hlt=20ist=20fix=20#282?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SL/IC.pm b/SL/IC.pm index 0b836a0a1..5b5c92add 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -314,7 +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_$_"} = 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 ''); push @where_tokens, "p.partnumber ILIKE ? OR p.description ILIKE ?"; push @bind_vars, (like($form->{all})) x 2; } -- 2.20.1