From aa01fd254647f4a0b76852b3ab2773d60ffe6161 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Sat, 30 Jul 2016 14:15:14 +0200 Subject: [PATCH] =?utf8?q?TopQuickSearch=20-=20Parameter=20type=20hei?= =?utf8?q?=C3=9Ft=20jetzt=20part=5Ftype?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/TopQuickSearch/Article.pm | 6 +++--- SL/Controller/TopQuickSearch/Assembly.pm | 2 +- SL/Controller/TopQuickSearch/Part.pm | 2 +- SL/Controller/TopQuickSearch/Service.pm | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SL/Controller/TopQuickSearch/Article.pm b/SL/Controller/TopQuickSearch/Article.pm index 89f9d8d02..b0a28e00b 100644 --- a/SL/Controller/TopQuickSearch/Article.pm +++ b/SL/Controller/TopQuickSearch/Article.pm @@ -56,7 +56,7 @@ sub redirect_to_search { controller => 'ic.pl', action => 'generate_report', all => $term, - (searchitems => $self->type) x!!$self->type, + (searchitems => $self->part_type) x!!$self->part_type, ); } @@ -70,7 +70,7 @@ sub redirect_to_part { ); } -sub type { +sub part_type { () } @@ -82,7 +82,7 @@ sub init_models { model => 'Part', source => { filter => { - (type => $self->type) x!!$self->type, + (part_type => $self->part_type) x!!$self->part_type, 'all:substr:multi::ilike' => $::form->{term}, }, }, diff --git a/SL/Controller/TopQuickSearch/Assembly.pm b/SL/Controller/TopQuickSearch/Assembly.pm index 7f7e9e2a2..da8cbc0c5 100644 --- a/SL/Controller/TopQuickSearch/Assembly.pm +++ b/SL/Controller/TopQuickSearch/Assembly.pm @@ -11,6 +11,6 @@ sub description_config { t8('Assemblies') } sub description_field { t8('Assemblies') } -sub type { 'assembly' } +sub part_type { 'assembly' } 1; diff --git a/SL/Controller/TopQuickSearch/Part.pm b/SL/Controller/TopQuickSearch/Part.pm index 9d4c2f0d7..6c81ac5fd 100644 --- a/SL/Controller/TopQuickSearch/Part.pm +++ b/SL/Controller/TopQuickSearch/Part.pm @@ -11,6 +11,6 @@ sub description_config { t8('Parts') } sub description_field { t8('Parts') } -sub type { 'part' } +sub part_type { 'part' } 1; diff --git a/SL/Controller/TopQuickSearch/Service.pm b/SL/Controller/TopQuickSearch/Service.pm index 7a9859015..0bba3789d 100644 --- a/SL/Controller/TopQuickSearch/Service.pm +++ b/SL/Controller/TopQuickSearch/Service.pm @@ -11,6 +11,6 @@ sub description_config { t8('Services') } sub description_field { t8('Services') } -sub type { 'service' } +sub part_type { 'service' } 1; -- 2.20.1