From 105869d3b968f061688a390993df1267baa11bd7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 May 2016 20:19:05 +0100 Subject: [PATCH] Bug 15919: Batch checkout - Display the due date MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When an item has been checked out in a batch, the due date will now be displayed in the information column. Test plan: Use the batch checkout to check some items out Confirm that the due date is displayed if the items have been checked out. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher --- circ/circulation.pl | 2 +- .../prog/en/modules/circ/circulation_batch_checkouts.tt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 0562df5c06..164e1d7c76 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -407,7 +407,7 @@ if (@$barcodes) { } unless($confirm_required) { my $issue = AddIssue( $borrower, $barcode, $datedue, $cancelreserve, undef, undef, { onsite_checkout => $onsite_checkout, auto_renew => $session->param('auto_renew') } ); - $template->param( issue => $issue ); + $template_params->{issue} = $issue; $session->clear('auto_renew'); $inprocess = 1; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt index 5af9853d81..614fdbbc01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -270,6 +270,10 @@ $(document).ready(function() { [% END %]

[% END %] + + [% IF checkout_info.issue.date_due %] +
  • Due on [% checkout_info.issue.date_due | $KohaDates %]
  • + [% END %] [% END %] -- 2.39.5