From 9e9b07b88e1fcddbf3afe7226fa005e3945b8ebe 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 (cherry picked from commit 105869d3b968f061688a390993df1267baa11bd7) Signed-off-by: Julian Maurice --- 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 0a56f80d7c..d808354291 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -404,7 +404,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 eadeb1d8f1..7f1fd4af4a 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 @@ -261,6 +261,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