From: Sven Schöling Date: Fri, 20 Apr 2012 15:26:45 +0000 (+0200) Subject: Ansprechpartnersuche: Filteroptionen lokalisieren X-Git-Tag: release-3.0.0beta1~343^2~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=91a33368cea2f0c618b59fa533ea24c94e443104;p=kivitendo-erp.git Ansprechpartnersuche: Filteroptionen lokalisieren --- diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 32fe32462..c843df4fe 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -337,7 +337,19 @@ sub list_contacts { my $report = SL::ReportGenerator->new(\%::myconfig, $::form); - my @options = $::locale->text('Search term') . ': ' . $::form->{search_term}; + my @options; + push @options, $::locale->text('Search term') . ': ' . $::form->{search_term} if $::form->{search_term}; + for (qw(cp_name cp_givenname cp_title cp_email cp_abteilung cp_project)) { + push @options, $column_defs{$_}{text} . ': ' . $::form->{filter}{$_} if $::form->{filter}{$_}; + } + if ($::form->{filter}{status}) { + push @options, $::locale->text('Status') . ': ' . ( + $::form->{filter}{status} =~ /active/ ? $::locale->text('Active') : + $::form->{filter}{status} =~ /orphaned/ ? $::locale->text('Orphaned') : + $::form->{filter}{status} =~ /all/ ? $::locale->text('All') : '' + ); + } + $report->set_options('top_info_text' => join("\n", @options), 'output_format' => 'HTML',