[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:58 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 #130888|0                           |1
        is obsolete|                            |

--- Comment #14 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 130892
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130892&action=edit
Bug 30133: Simplify code

This patch simplifies the code, and also fixes a problem with branchcode
comparisson failing, highlighted when running the tests

To test:
1. Apply the regression tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/items.t
=> FAIL: Tests fail. Notably:
- Link header pagination is wrong
- X-*Total-Count headers have two values (dupicated)
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

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