projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a846a3
)
TopQuickSearch - Parameter type heißt jetzt part_type
author
G. Richardson
<information@kivitendo-premium.de>
Sat, 30 Jul 2016 12:15:14 +0000
(14:15 +0200)
committer
G. Richardson
<information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:11:25 +0000
(14:11 +0100)
SL/Controller/TopQuickSearch/Article.pm
patch
|
blob
|
history
SL/Controller/TopQuickSearch/Assembly.pm
patch
|
blob
|
history
SL/Controller/TopQuickSearch/Part.pm
patch
|
blob
|
history
SL/Controller/TopQuickSearch/Service.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/TopQuickSearch/Article.pm
b/SL/Controller/TopQuickSearch/Article.pm
index
89f9d8d
..
b0a28e0
100644
(file)
--- 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
7f7e9e2
..
da8cbc0
100644
(file)
--- 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
9d4c2f0
..
6c81ac5
100644
(file)
--- 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
7a98590
..
0bba378
100644
(file)
--- 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;