]> 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:51:52 +0000 (10:51 -0500)
commit53888f69217362eab7e027cde04969e034058784
tree81bcf693bb3cd68d9aa593b8255e12bd67cbb31c
parentb40e7bce894244175caa92485dddf1140b5204a4
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