From: Moritz Bunkus Date: Wed, 11 Jun 2014 07:51:44 +0000 (+0200) Subject: CustomerVendor-Picker: keine ungültigen, wenn $::form->{obsolete} nicht gesetzt ist X-Git-Tag: release-3.2.0beta~411^2~72 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=afb8e14695ac06126fff2084b3b67d517663f9f6;p=kivitendo-erp.git CustomerVendor-Picker: keine ungültigen, wenn $::form->{obsolete} nicht gesetzt ist --- 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';