Bugzilla – Attachment 65588 Details for
Bug 19053
Auto renewal flag is not kept if a confirmation is needed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19053: Keep auto_renew flag if a confirmation is needed
Bug-19053-Keep-autorenew-flag-if-a-confirmation-is.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2017-08-07 16:52:50 UTC
(
hide
)
Description:
Bug 19053: Keep auto_renew flag if a confirmation is needed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-08-07 16:52:50 UTC
Size:
1.99 KB
patch
obsolete
>From 1ec510c825e62b1b8f2b44a302016540d66a6bf7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 >--- > 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() { > <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> > [% END %] > <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" /> >+ <input type="hidden" name="auto_renew" value="[% auto_renew %]" /> > </form> > [% END %] > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19053
:
65588
|
65615
|
65886