From: Sven Schöling Date: Wed, 14 Dec 2011 14:47:59 +0000 (+0100) Subject: Paginating Helper: Funktion um paginating nachträglich zu deaktivieren X-Git-Tag: release-2.7.0beta1~131 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3f214c128c8eb8a7ebf44a5a9d37c6a4e0fe5209;p=kivitendo-erp.git Paginating Helper: Funktion um paginating nachträglich zu deaktivieren Wird für pdf/csv Exporte gebraucht. --- diff --git a/SL/DB/Helper/Paginated.pm b/SL/DB/Helper/Paginated.pm index c490e2ab6..a24d4d7e0 100644 --- a/SL/DB/Helper/Paginated.pm +++ b/SL/DB/Helper/Paginated.pm @@ -4,7 +4,7 @@ use strict; require Exporter; our @ISA = qw(Exporter); -our @EXPORT = qw(paginate); +our @EXPORT = qw(paginate disable_paginating); use List::MoreUtils qw(any); @@ -64,6 +64,13 @@ sub calc_visibility { any { abs ($cur - $this) == $_ } 10, 50, 100, 500, 1000, 5000; } +sub disable_paginating { + my ($self, %params) = @_; + + delete $params{args}{page}; + delete $params{args}{per_page}; +} + 1; __END__