From: G. Richardson Date: Sat, 30 Jul 2016 12:15:14 +0000 (+0200) Subject: TopQuickSearch - Parameter type heißt jetzt part_type X-Git-Tag: release-3.5.4~1909 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=aa01fd254647f4a0b76852b3ab2773d60ffe6161;p=kivitendo-erp.git TopQuickSearch - Parameter type heißt jetzt part_type --- 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;