From 17cd229335ec9148a9d5f316e846f4bee01ccb1c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 17 Dec 2019 12:10:28 +0100 Subject: [PATCH] Bug 24171: Preserve auto_renew when triggering itemBarcodeFallbackSearch The auto_renew parameter is not sent to the template when the popup triggered by itemBarcodeFallbackSearch is displayed. Test plan: - Turn on itemBarcodeFallbackSearch - Open a patron account - Check the checkboxes for automatic-renewal - Search for a title keyword in the checkout input box - Verify that auto-renewal flag is set Note for QA: The auto_renew flag will be set in any cases. Should we expect regression? Signed-off-by: Katrin Fischer Signed-off-by: Bouzid Fergani Signed-off-by: Martin Renvoize --- circ/circulation.pl | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 90e525cdfe..3655ec16c3 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -204,6 +204,8 @@ else { $session->clear('auto_renew'); } +$template->param( auto_renew => $session->param('auto_renew') ); + my ($datedue,$invalidduedate); my $duedatespec_allow = C4::Context->preference('SpecifyDueDate'); @@ -427,7 +429,6 @@ if (@$barcodes) { $template_params->{getTitleMessageIteminfo} = $biblio->title; $template_params->{getBarcodeMessageIteminfo} = $item->barcode; $template_params->{NEEDSCONFIRMATION} = 1; - $template_params->{auto_renew} = $session->param('auto_renew'); $confirm_required = 1; } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index b028549691..7c7eaef87b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -450,6 +450,7 @@ + -- 2.39.5