From 709aea6d9bb4252a100f698e55b79d1143916a50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 20 Jul 2016 15:05:15 +0200 Subject: [PATCH] TopQuickSearch: Alle Artikelsuchen haben nur Erzeugnisse gefunden ...hat keiner gemerkt... --- SL/Controller/TopQuickSearch/Article.pm | 1 - bin/mozilla/ic.pl | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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'), }, -- 2.20.1