[Koha-bugs] [Bug 35167] GET /items* broken if notforloan == 0 and itemtype.notforloan == NULL
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 26 22:20:57 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35167
Lucas Gass <lucas at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #157949|0 |1
is obsolete| |
--- Comment #5 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 157955
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157955&action=edit
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 at theke.io>
Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list