Bug 24680: Fix PUT api/v1/holds/{hold_id} to work also when priority is not provided
authorEre Maijala <ere.maijala@helsinki.fi>
Wed, 19 Feb 2020 09:43:08 +0000 (11:43 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 26 Feb 2020 20:40:10 +0000 (20:40 +0000)
commit1f16881f28146a9a01ed0d599087f1c612ba9b7d
tree543dac4e7310ad11ad7361af14fe8975da3af235
parent4f3b4dae2740113a022ca4b44ff5e4881f706a1c
Bug 24680: Fix PUT api/v1/holds/{hold_id} to work also when priority is not provided

Before this fix the endpoint would accept the request but fail to actually update the hold if the request does not contain a priority parameter.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t