]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 25 Feb 2022 00:35:36 +0000 (14:35 -1000)
commit1758b586424b8e012715ec686b23f8df1835052e
tree27718703b6de0a13d9d457fae3aa074e8fc56086
parent60b07917f34645ed4a243c47201c6703ab099780
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>
Koha/REST/V1/Items.pm