From 233abba73cefbe03885bc2192435b28e746f59aa Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 16 Jul 2012 14:13:31 +1000 Subject: [PATCH] Bug 8448 - Holds Awaiting Pickup : Cancelling a hold on a waiting item with multiple holds displays a blank screen instead of a warning prompt When you cancel a hold in the "Hold Waiting" tab of Holds Awaiting Pickup, you should be prompted to retain or transfer the hold for the next patron in the queue. However, instead of seeing this prompt, you are just shown white screen that fails to alert you to the fact that there are more holds on that item! There is a missing FOREACH reference in waitingreserves.tt. The template tries to directly reference the hash within the cancel_results array, but we need to access the array before we can access the hash. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../prog/en/modules/circ/waitingreserves.tt | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt index f4b4d4c4ae..fcbe8b0f25 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt @@ -45,26 +45,28 @@ $.tablesorter.addParser({ [% END %] [% IF ( cancel_result ) %] - [% IF ( cancel_result.messagetransfert ) %] -
-

Hold find for ([% nextreservtitle %]), must be transferred

-

This hold placed by : [% nextreservsurname %] [% nextreservfirstname %] at the library : [% branchname %] , Please transfer this hold. -

-
- -
-
- [% END %] - [% IF ( cancel_result.waiting ) %] -
-

This hold is waiting

-

This hold ([% nextreservtitle %]) was placed by : [% nextreservsurname %] [% nextreservfirstname %], - Please retain this hold. -

-
- -
-
+ [% FOREACH cancel_result %] + [% IF ( messagetransfert ) %] +
+

Hold find for ([% nextreservtitle %]), must be transferred

+

This hold placed by : [% nextreservsurname %] [% nextreservfirstname %] at the library : [% branchname %] , Please transfer this hold. +

+
+ +
+
+ [% END %] + [% IF ( waiting ) %] +
+

This hold is waiting

+

This hold ([% nextreservtitle %]) was placed by : [% nextreservsurname %] [% nextreservfirstname %], + Please retain this hold. +

+
+ +
+
+ [% END %] [% END %] [% ELSE %]
-- 2.39.2