Bug 16988 - Suspending a hold with AutoResumeSuspendedHolds disabled results in error
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 27 Jul 2016 18:00:53 +0000 (18:00 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 4 Aug 2016 19:20:22 +0000 (19:20 +0000)
commit91bc9451d0378d65100c828776b09395e4c88199
treeaef20fc955ac89df8c50813488f25a1a0081b0f5
parentc63d0b311b5e7ba882d19b9b8a71838256de98cf
Bug 16988 - Suspending a hold with AutoResumeSuspendedHolds disabled results in error

iUnless AutoResumeSuspendedHolds is enabled, attempting to suspend a
hold from reserve/request.pl results in the following error:

The given date (undefined) does not match the date format (us) at
/home/vagrant/kohaclone/Koha/DateUtils.pm line 152.

Test Plan:
1) Enable SuspendHoldsIntranet
2) Disable AutoResumeSuspendedHolds
3) Attempt to suspend or unsuspend a hold
4) Note the error
5) Apply this patch
6) Repeat step 3
7) The hold should suspend or resume correctly

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Megan Wianecki <mwianecki@mtpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt