Bug 30133: Avoid calling c->objects->search twice
authorNick Clemens <nick@bywatersolutions.com>
Fri, 18 Feb 2022 14:25:41 +0000 (14:25 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 20 Mar 2022 14:32:17 +0000 (14:32 +0000)
commit4b28776828b73acd205e7c93936664c1a0d0167b
treed29806e5b94e735b47d05f3a045c4dd82dccff19
parent3600be01330f16efa950ca078419a8e4c2128720
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>
(cherry picked from commit eb281a56cd83a3215d39204f51e3cc5987458480)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/REST/V1/Items.pm