From afb8e14695ac06126fff2084b3b67d517663f9f6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 11 Jun 2014 09:51:44 +0200 Subject: [PATCH] =?utf8?q?CustomerVendor-Picker:=20keine=20ung=C3=BCltigen?= =?utf8?q?,=20wenn=20$::form->{obsolete}=20nicht=20gesetzt=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CustomerVendor.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index f59fd07b5..f16ce6f80 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -551,6 +551,8 @@ sub action_ajaj_customer_autocomplete { $::form->{column} ? ($::form->{column} => $query) : (or => [ customernumber => $query, name => $query ]) ); + push @filter, (or => [ obsolete => undef, obsolete => 0 ]) if !$::form->{obsolete}; + my $customers = SL::DB::Manager::Customer->get_all(query => [ @filter ], limit => $limit); my $value_col = $::form->{column} || 'name'; -- 2.20.1