]> git.koha-community.org Git - koha.git/commit
Bug 30133: Avoid calling c->objects->search twice
authorNick Clemens <nick@bywatersolutions.com>
Fri, 18 Feb 2022 14:25:41 +0000 (14:25 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Feb 2022 15:42:13 +0000 (10:42 -0500)
commiteb281a56cd83a3215d39204f51e3cc5987458480
treefd37741fcefce24c15f74acaf018fdeffbbde36a
parentcfe9578eeee1871b606028099fa08a1e9f1f91cd
Bug 30133: Avoid calling c->objects->search twice

Calling this twice sets double pagination headers, which messes up the page for the requests and
retrieves on ly the end of the list

This patch simply avoids a doulbe call

TO DO: must implement same for Biblio->pickup_locations and cover with tests
this also returns all as needing override

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1/Items.pm