projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nutzung der Tabelle currencies
[kivitendo-erp.git]
/
SL
/
Controller
/
Helper
/
Sorted.pm
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 ($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] },
$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});
};
# $::lxdebug->message(0, "saving current sort params to " . $self->{PRIV()}->{by} . ' / ' . $self->{PRIV()}->{dir});