]> git.koha-community.org Git - koha.git/commit
Bug 19369: Add helper function for pagination attributes generation
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Sep 2017 18:12:19 +0000 (15:12 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Dec 2017 20:46:59 +0000 (17:46 -0300)
commit538536da73681719a1c2d7349a6d729bad7f39f4
tree5ac0000d6be1648f0d617dbbc57353b68501e0a8
parent83ca8fb600e598995b3547912092ec6df2dd3cac
Bug 19369: Add helper function for pagination attributes generation

This patch introduces a new helper function to the Koha::REST::Plugin::Pagination
plugin, called 'dbic_merge_pagination'.

This simple function adds SQL::Abstract pagination attributes ('page' and 'rows') to the
passed $filter hashref.

To test:
- Apply this patches
- Run:
  $ koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/Koha/REST/Plugin/Pagination.t
=> SUCCESS: Tests pass!
- Sign off :-D

Sponsored-by: Camden County
Signed-off-by: Lari Taskula <lari.taskula@jns.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/Plugin/Pagination.pm