Bug 24680: Fix end_date returned from api/v1/holds/{hold_id}/suspension endpoint
authorEre Maijala <ere.maijala@helsinki.fi>
Wed, 19 Feb 2020 09:45:04 +0000 (11:45 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 26 Feb 2020 20:40:27 +0000 (20:40 +0000)
commitd4509897e1613e8239b5d27ffb9bc121ad842c5d
tree0caaf3ea19ac714bcd63e4c30243e8ff4ecf2892
parent1f16881f28146a9a01ed0d599087f1c612ba9b7d
Bug 24680: Fix end_date returned from api/v1/holds/{hold_id}/suspension endpoint

Before this patch the response would return current date as the suspension end date for a hold that is suspended with no end date.

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