From cc481b043893c52951d4cbe9b836bdcf381968e3 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Fri, 6 Jan 2017 11:13:26 -0500 Subject: [PATCH] LP#1654534: Prevent loop that occurs when staff us 'place another hold' link A hidden field that tracked the page the user was on before placing a hold was inadvertently removed in another bug fix. As a result, if staff used the link to place another hold on the same title, they were stuck in a loop where they couldn't return to the source page after hitting the 'continue' button. This commit restores that hidden field. Also provides a fix so that hold labels used in the place another hold link can be translated. Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 1 + Open-ILS/src/templates/opac/parts/place_hold_result.tt2 | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index c4f197d177..8b898d825a 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -31,6 +31,7 @@ redirect = redirect.replace('^http:', 'https:') %] + [% usr_barcode = CGI.param('usr_barcode') | html; is_requestor = CGI.param('is_requestor'); diff --git a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 index 889f4113da..d158e86941 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2 @@ -136,11 +136,11 @@ [% l('Continue') %] [% IF ctx.is_staff %] [% IF CGI.param('hold_type') == 'C'; - hold_type_label = 'copy'; + hold_type_label = l('copy'); ELSIF CGI.param('hold_type') == 'V'; - hold_type_label = 'volume'; + hold_type_label = l('volume'); ELSE; - hold_type_label = 'title'; + hold_type_label = l('title'); END %] [% l('Place another hold for this ') %] [% hold_type_label %] -- 2.43.2