From c90b8f28cc9dd5d211532bf9fc1abfd4da3befb3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 7 Aug 2017 13:50:32 -0300 Subject: [PATCH] [SIGNED-OFF] Bug 19053: Keep auto_renew flag if a confirmation is needed If an item is checked out with the auto renewal flag and a confirmation is needed (holds exist, past due date, etc.) the auto renewal flag will get lost. Test plan: - Check an item out and specify a past due date - Confirm the checkout on the confirmation screen => Without this patch the checkout is not marked as auto renewal => With this patch applied the auto renewal flag will be set to the checkout Signed-off-by: Josef Moravec --- circ/circulation.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + 2 files changed, 2 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index fad8623..7e9a500 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -397,6 +397,7 @@ if (@$barcodes) { $template_params->{getBarcodeMessageIteminfo} = $item->barcode; $template_params->{NEEDSCONFIRMATION} = 1; $template_params->{onsite_checkout} = $onsite_checkout; + $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 ed054ae..6d6b91f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -371,6 +371,7 @@ $(document).ready(function() { [% END %] + [% END %] -- 2.1.4