From 3808dbc1d22b3adc43a09ba7ce00aaca01f95f5a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 7 Aug 2017 13:50:32 -0300 Subject: [PATCH] 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 Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart --- 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 fad8623fc3..7e9a5006c8 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 ed054aeb3d..6d6b91f45c 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.39.5