[Koha-bugs] [Bug 30526] The pagination in the REST API does not work if $c->objects->search is called multiple times.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 13 16:58:11 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30526

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Andreas Jonsson from comment #2)
> Test plan:
> 
> * Make sure you have at least 3 libraries that may be pickup locations.
> * Activate the system preference AllowHoldPolicyOverride
> * Change the system preference  RESTdefaultPageSize to 1
> * Go to a record and make a place a hold.
> * In the Holds view for the record, verify that all libraries appear in the
> pickup library drop down menu on the hold.

Hi, nice catch and really happy to see your patch.
I suggest you take a look at this files:

- t/Koha/REST/Plugin/Pagination.t
- t/db_dependent/api/v1/pagination.t

in those files, you should add regression tests at different levels.

In case you need it, ping me on IRC (tcohen) or just drop an email to
koha-devel.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list