From 91bc9451d0378d65100c828776b09395e4c88199 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 27 Jul 2016 18:00:53 +0000 Subject: [PATCH] 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 Signed-off-by: Megan Wianecki Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher --- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index d35ce1a0c1..ba53b3a118 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -809,9 +809,11 @@ function checkMultiHold() { [% IF AutoResumeSuspendedHolds %] - - - Clear date + + + Clear date + [% ELSE %] + [% END %] [% ELSE %] -- 2.39.5