From: Sven Schöling Date: Wed, 20 Apr 2011 12:06:12 +0000 (+0200) Subject: CVar Filter wurden in Kundensuche nicht weitergereicht an den Export. X-Git-Tag: release-2.6.3~33^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=daf751b5be2c1e5baab277718f9b9dd699b77289;p=kivitendo-erp.git CVar Filter wurden in Kundensuche nicht weitergereicht an den Export. --- diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 16077a8b9..4121ac5e4 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -184,8 +184,14 @@ sub list_names { map { $column_defs{$_}->{visible} = $form->{"l_$_"} eq 'Y' } @columns; - my @hidden_variables = (qw(db status obsolete name contact email cp_name addr_street addr_zipcode addr_city business_id), - "$form->{db}number", @searchable_custom_variables, map { "l_$_" } @columns); + my @hidden_variables = ( qw( + db status obsolete name contact email cp_name addr_street addr_zipcode + addr_city business_id + ), "$form->{db}number", + map({ "cvar_$_->{name}" } @searchable_custom_variables), + map({ "l_$_" } @columns), + ); + my @hidden_nondefault = grep({ $form->{$_} } @hidden_variables); my $callback = build_std_url('action=list_names', grep { $form->{$_} } @hidden_nondefault); $form->{callback} = "$callback&sort=" . E($form->{sort}) . "&sortdir=" . E($form->{sortdir});