From: David Cook Date: Mon, 16 Jul 2012 04:13:31 +0000 (+1000) Subject: Bug 8448 - Holds Awaiting Pickup : Cancelling a hold on a waiting item with multiple... X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=58b85e1df11c49f8d211efaf4232793842c57fce 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 --- 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 0101d7f8f9..ea0faefee0 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 %]