]> git.koha-community.org Git - koha.git/commit
Bug 30133: Simplify code
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 18 Feb 2022 18:22:36 +0000 (15:22 -0300)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Feb 2022 15:42:13 +0000 (10:42 -0500)
commiteb5dbb4010c6f95f6ddaf594d8aee22509acec42
tree80871b0b714825b4e5d705bfcc5e319d3dfef3fb
parenteb281a56cd83a3215d39204f51e3cc5987458480
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@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