]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1903594 Bootstrap opac: suspend hold not working
authorGarry Collum <gcollum@gmail.com>
Wed, 11 Nov 2020 16:03:00 +0000 (11:03 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Feb 2021 15:54:26 +0000 (10:54 -0500)
commitaf931b20510b4f4509b346b7429d66adbca8d871
tree22665b1524e1d3aabd0acf40ad8d12869f7373f9
parentada6eddbffe99fc7f673634a0264d68282934955
LP1903594 Bootstrap opac: suspend hold not working

Fixes hold suspension at the time of the hold placement in the Bootstrap opac.
And fixes the date picker validation for the activation date.

To test.
As a patron, place a hold in the Bootstrap Opac.
At the time of placement select "Suspend this hold?" and set an activation date.
In the staff client, notice that neither the suspension or activation date has been saved.

Apply the patch.
Repeat the above steps and check for the suspension and activation date.
Place another hold with a activation date in the past.  This should fail.
Place a hold without "Suspend this hold" checked.
Place a hold with "Suspend this hold" checked, but without an activation date.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates-bootstrap/opac/parts/place_hold.tt2