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:
7f8599c
)
Sorted-Controller-Helfer: Standardsortierrichtung nutzen, wenn nicht anders übergeben
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 24 Jan 2013 13:55:56 +0000
(14:55 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 24 Jan 2013 13:57:12 +0000
(14:57 +0100)
SL/Controller/Helper/Sorted.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Helper/Sorted.pm
b/SL/Controller/Helper/Sorted.pm
index
98c0a7c
..
2bdc51b
100644
(file)
--- a/
SL/Controller/Helper/Sorted.pm
+++ b/
SL/Controller/Helper/Sorted.pm
@@
-108,9
+108,10
@@
sub _save_current_sort_params {
my ($self) = @_;
my $sort_spec = $self->get_sort_spec;
+ my $dir_idx = $sort_spec->{FORM_PARAMS}->[1];
$self->{PRIV()} = {
by => $::form->{ $sort_spec->{FORM_PARAMS}->[0] },
- dir =>
!!$::form->{ $sort_spec->{FORM_PARAMS}->[1] } * 1
,
+ dir =>
defined($::form->{$dir_idx}) ? $::form->{$dir_idx} * 1 : undef
,
};
# $::lxdebug->message(0, "saving current sort params to " . $self->{PRIV()}->{by} . ' / ' . $self->{PRIV()}->{dir});