Bugzilla – Attachment 65615 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]
[SIGNED-OFF] Bug 19053: Keep auto_renew flag if a confirmation is needed
SIGNED-OFF-Bug-19053-Keep-autorenew-flag-if-a-conf.patch (text/plain), 2.05 KB, created by
Josef Moravec
on 2017-08-08 08:15:21 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 19053: Keep auto_renew flag if a confirmation is needed
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-08-08 08:15:21 UTC
Size:
2.05 KB
patch
obsolete
>From c90b8f28cc9dd5d211532bf9fc1abfd4da3befb3 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] [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 <josef.moravec@gmail.com> >--- > 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() { > <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.1.4
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