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:
c6e1a58
)
Sorted-Controller-Helfer: Default-Wert für 'DEFAULT_BY' gefixt
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 31 Aug 2012 14:41:32 +0000
(16:41 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 31 Aug 2012 14:41:32 +0000
(16:41 +0200)
SL/Controller/Helper/Sorted.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Helper/Sorted.pm
b/SL/Controller/Helper/Sorted.pm
index
7f5f452
..
817f803
100644
(file)
--- a/
SL/Controller/Helper/Sorted.pm
+++ b/
SL/Controller/Helper/Sorted.pm
@@
-23,7
+23,7
@@
sub make_sorted {
}
$specs{DEFAULT_DIR} = $specs{DEFAULT_DIR} || !defined($specs{DEFAULT_DIR}) ? 1 : 0;
- $specs{DEFAULT_BY} ||=
"SL::DB::$specs{MODEL}::Manager"->_get_sort_spec($class)
->{default}->[0];
+ $specs{DEFAULT_BY} ||=
{ "SL::DB::Manager::$specs{MODEL}"->_sort_spec }
->{default}->[0];
$specs{FORM_PARAMS} ||= [ qw(sort_by sort_dir) ];
$specs{ONLY} ||= [];
$specs{ONLY} = [ $specs{ONLY} ] if !ref $specs{ONLY};