]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 20 Mar 2022 14:32:25 +0000 (14:32 +0000)
commit86beecce8139d5a8cb7c44a90517bd61660729bf
treeaacc0fe224dd2e7e8b6e21e2f5650f624926fa87
parent4b28776828b73acd205e7c93936664c1a0d0167b
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>
(cherry picked from commit eb5dbb4010c6f95f6ddaf594d8aee22509acec42)

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