[Koha-bugs] [Bug 20167] Item hold is set to bibliographic hold when changing pickup location

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 6 15:19:14 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20167

--- Comment #5 from Claire Gravely <claire_gravely at hotmail.com> ---
Created attachment 72480
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72480&action=edit
Bug 20167: Make changing a hold pass the itemnumber to ModReserve

If you have an item-level hold, changing an attribute (like priority,
pickup location or suspended until date) makes the hold a biblio-level
hold, because ModReserve is not passed the current itemnumber.

This patch uses the hold's itemnumber and passes it to the ModReserve
call.

To test:
- Run the regression tests from the previous patch:
  $ kshell
 k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: Tests fail
- Apply this patch
- Run the tests:
  $ kshell
 k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Claire Gravely <claire.gravely at bsz-bw.de>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list