]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Oct 2023 19:44:05 +0000 (16:44 -0300)
commitb9ea3eb988b116ffc912fad9315533c7774a3754
tree471ca0a250ef671afd68004608342ac5842a98fb
parentc67d28c5f9136a96bfb665cd13f354af492e3233
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>
Koha/Item.pm