[Koha-bugs] [Bug 30133] Incorrect list of libraries returned when more libraries than RESTdefaultPageSize and AllowHoldPolicyOverride enabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 18 20:20:54 CET 2022


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

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #130887|0                           |1
        is obsolete|                            |

--- Comment #13 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 130891
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130891&action=edit
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 at theke.io>

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

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

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


More information about the Koha-bugs mailing list