projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kleinere DB-Details (Fremdschlüssel und verwaiste Tabelle)
[kivitendo-erp.git]
/
SL
/
Controller
/
Helper
/
GetModels
/
Sorted.pm
diff --git
a/SL/Controller/Helper/GetModels/Sorted.pm
b/SL/Controller/Helper/GetModels/Sorted.pm
index
216215e
..
3b03e04
100644
(file)
--- a/
SL/Controller/Helper/GetModels/Sorted.pm
+++ b/
SL/Controller/Helper/GetModels/Sorted.pm
@@
-76,6
+76,12
@@
sub finalize {
my %sort_params = $self->read_params;
my $sort_spec = $self->specs->{ $sort_params{sort_by} };
my %sort_params = $self->read_params;
my $sort_spec = $self->specs->{ $sort_params{sort_by} };
+ if (!$sort_spec) {
+ no warnings 'once';
+ $::lxdebug->show_backtrace(1);
+ die "Unknown sort spec '$sort_params{sort_by}'";
+ }
+
$params{sort_by} = "SL::DB::Manager::$sort_spec->{model}"->make_sort_string(sort_by => $sort_spec->{model_column}, sort_dir => $sort_params{sort_dir});
%params;
$params{sort_by} = "SL::DB::Manager::$sort_spec->{model}"->make_sort_string(sort_by => $sort_spec->{model_column}, sort_dir => $sort_params{sort_dir});
%params;