Koha-clms/Koha/REST/V1
Tomas Cohen Arazi e854b57002 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@bsz-bw.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-03-23 10:41:33 +00:00
..
Acquisitions Bug 18120: Tidy up 2017-09-29 17:13:13 -03:00
Auth.pm Bug 18137: (QA-follow-up) Fix pod fail 2017-09-21 11:27:05 -03:00
Cities.pm Bug 18137: (follow-up) Fix handling DBIx::Class::Exception messages 2017-09-21 11:27:05 -03:00
Hold.pm Bug 20167: Make changing a hold pass the itemnumber to ModReserve 2018-03-23 10:41:33 +00:00
Illrequests.pm Bug 7317: QA followup 2017-11-09 11:42:14 -03:00
Patron.pm Bug 18137: Make /patrons Mojolicious::Plugin::OpenAPI compatible 2017-09-21 11:27:05 -03:00