From: Sven Schöling Date: Wed, 20 Jul 2016 13:05:15 +0000 (+0200) Subject: TopQuickSearch: Alle Artikelsuchen haben nur Erzeugnisse gefunden X-Git-Tag: release-3.5.4~2192 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=709aea6d9bb4252a100f698e55b79d1143916a50;p=kivitendo-erp.git TopQuickSearch: Alle Artikelsuchen haben nur Erzeugnisse gefunden ...hat keiner gemerkt... --- diff --git a/SL/Controller/TopQuickSearch/Article.pm b/SL/Controller/TopQuickSearch/Article.pm index 86ce4263e..9bedb436a 100644 --- a/SL/Controller/TopQuickSearch/Article.pm +++ b/SL/Controller/TopQuickSearch/Article.pm @@ -52,7 +52,6 @@ sub redirect_to_search { SL::Controller::Base->new->url_for( controller => 'ic.pl', action => 'generate_report', - searchitems => 'assembly', all => $_[0], ); } diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 5fb8adf57..cf94b7bc9 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -258,9 +258,14 @@ sub generate_report { my $cvar_configs = CVar->get_configs('module' => 'IC'); - $form->{title} = (ucfirst $form->{searchitems}) . "s"; - $form->{title} =~ s/ys$/ies/; - $form->{title} = $locale->text($form->{title}); + my %titles = ( + '' => $locale->text('Articles'), + part => $locale->text('Parts'), + service => $locale->text('Services'), + assembly => $locale->text('Assemblies'), + ); + + $form->{title} = $titles{$form->{searchitems}}; my %column_defs = ( 'bin' => { 'text' => $locale->text('Bin'), },