projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
marei: tl2019 compat
[kivitendo-erp.git]
/
SL
/
Controller
/
TopQuickSearch
/
CustomerVendor.pm
diff --git
a/SL/Controller/TopQuickSearch/CustomerVendor.pm
b/SL/Controller/TopQuickSearch/CustomerVendor.pm
index
cd882fa
..
0f18b3b
100644
(file)
--- a/
SL/Controller/TopQuickSearch/CustomerVendor.pm
+++ b/
SL/Controller/TopQuickSearch/CustomerVendor.pm
@@
-14,11
+14,11
@@
use Rose::Object::MakeMethods::Generic (
# nope. this is only for subclassing
sub auth { 'NOT ALLOWED' }
# nope. this is only for subclassing
sub auth { 'NOT ALLOWED' }
-sub name {
...
}
+sub name {
die 'must be overwritten'
}
-sub description_config {
...
}
+sub description_config {
die 'must be overwritten'
}
-sub description_field {
...
}
+sub description_field {
die 'must be overwritten'
}
sub query_autocomplete {
my ($self) = @_;
sub query_autocomplete {
my ($self) = @_;
@@
-66,6
+66,7
@@
sub redirect_to_object {
SL::Controller::Base->new->url_for(
controller => 'CustomerVendor',
action => 'edit',
SL::Controller::Base->new->url_for(
controller => 'CustomerVendor',
action => 'edit',
+ db => $_[0]->db,
id => $_[1],
);
}
id => $_[1],
);
}
@@
-81,6
+82,7
@@
sub init_models {
source => {
filter => {
'all:substr:multi::ilike' => $::form->{term}, # all filter spec is set in SL::DB::Manager::Customer
source => {
filter => {
'all:substr:multi::ilike' => $::form->{term}, # all filter spec is set in SL::DB::Manager::Customer
+ or => [ obsolete => undef, obsolete => 0 ],
},
},
sorted => {
},
},
sorted => {
@@
-97,15
+99,15
@@
sub init_models {
}
sub type {
}
sub type {
- ...
+ die 'must be overwritten'
}
sub cv {
}
sub cv {
- ...
+ die 'must be overwritten'
}
sub model {
}
sub model {
- ...
+ die 'must be overwritten'
};
1;
};
1;