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
/
Paginated.pm
diff --git
a/SL/Controller/Helper/Paginated.pm
b/SL/Controller/Helper/Paginated.pm
index
1683aad
..
15997b8
100644
(file)
--- a/
SL/Controller/Helper/Paginated.pm
+++ b/
SL/Controller/Helper/Paginated.pm
@@
-61,16
+61,10
@@
sub get_current_paginate_params {
: $spec->{PAGINATE_ARGS} ? do { my $sub = $spec->{PAGINATE_ARGS}; %{ $self->$sub() } }
: ();
my $calculated_params = "SL::DB::Manager::$spec->{MODEL}"->paginate(%paginate_params, args => \%paginate_args);
: $spec->{PAGINATE_ARGS} ? do { my $sub = $spec->{PAGINATE_ARGS}; %{ $self->$sub() } }
: ();
my $calculated_params = "SL::DB::Manager::$spec->{MODEL}"->paginate(%paginate_params, args => \%paginate_args);
- %paginate_params = (
- page => min($paginate_params{page}, $calculated_params->{max}),
- per_page => $paginate_params{per_page},
- num_pages => $calculated_params->{max},
- common_pages => $calculated_params->{common},
- );
- # $::lxdebug->dump(0, "get_current_paginate_params: ",
\%paginate
_params);
+ # $::lxdebug->dump(0, "get_current_paginate_params: ",
$calculated
_params);
- return %
paginate_params
;
+ return %
{ $calculated_params }
;
}
sub disable_pagination {
}
sub disable_pagination {