]> wagnertech.de Git - kivitendo-erp.git/commitdiff
TopQuickSearch - Parameter type heißt jetzt part_type
authorG. Richardson <information@kivitendo-premium.de>
Sat, 30 Jul 2016 12:15:14 +0000 (14:15 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:11:25 +0000 (14:11 +0100)
SL/Controller/TopQuickSearch/Article.pm
SL/Controller/TopQuickSearch/Assembly.pm
SL/Controller/TopQuickSearch/Part.pm
SL/Controller/TopQuickSearch/Service.pm

index 89f9d8d02ed4ac427b1e13f2daad7f20ab4da756..b0a28e00bf27cb9d9732e735a8575327cd89adda 100644 (file)
@@ -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},
       },
     },
index 7f7e9e2a233b62932451aa0d545a4fc3505ff810..da8cbc0c5bbf390092796ea19c70477ae339d712 100644 (file)
@@ -11,6 +11,6 @@ sub description_config { t8('Assemblies') }
 
 sub description_field { t8('Assemblies') }
 
-sub type { 'assembly' }
+sub part_type { 'assembly' }
 
 1;
index 9d4c2f0d7e3440b70be6b16d2603253472151bd5..6c81ac5fda1b43357ae7ff18a2e8ca99dceb13f7 100644 (file)
@@ -11,6 +11,6 @@ sub description_config { t8('Parts') }
 
 sub description_field { t8('Parts') }
 
-sub type { 'part' }
+sub part_type { 'part' }
 
 1;
index 7a98590152bcb38f6ac665c312529f5111c1a787..0bba3789daab542054717b79508f1ab678417de2 100644 (file)
@@ -11,6 +11,6 @@ sub description_config { t8('Services') }
 
 sub description_field { t8('Services') }
 
-sub type { 'service' }
+sub part_type { 'service' }
 
 1;