]> git.koha-community.org Git - koha.git/commit
Bug 35167: Make 'effective_not_for_loan_status' fallback to 0 if itype has it undef
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 26 Oct 2023 17:58:40 +0000 (14:58 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 2 Nov 2023 20:31:49 +0000 (10:31 -1000)
commit34d08324fcc20c8c83bbbb87f0f1eff0481638f5
tree061c8a0ca424b260e7b2e44f5586cf5dede1d443
parentd37fbdb665e598cc630ac351d833d213be222f82
Bug 35167: Make 'effective_not_for_loan_status' fallback to 0 if itype has it undef

This patch makes the effective not for loan status be set the item value
if not defined at itype level.

To test:
1. Apply the regressions tests patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/items.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit b9ea3eb988b116ffc912fad9315533c7774a3754)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Item.pm