From cd420d1165c72869875236de16e515f4592eeb99 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 30 May 2018 13:07:39 +0000 Subject: [PATCH] Bug 17561: (follow-up) Pass itemnumber on returns and correct itemnumber param in circulation To test: 1 - Place two holds on a bib for a single patron 2 - Check in both items, confirm the screen message and slip are correct 3 - Checkout both items to another patron, confirm the screen message and slip are correct Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 183e10c13f6366b29dd79a7a9549f7d105d73f73) Signed-off-by: Fridolin Somers --- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index 247a71eab9..f41623c923 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -81,6 +81,7 @@ if ( $query->param('print_slip') ) { print_slip => 1, borrowernumber => scalar $query->param('borrowernumber'), biblionumber => scalar $query->param('biblionumber'), + itemnumber => scalar $query->param('itemnumber'), ); } 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 ae5b146e95..245bac1155 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -381,7 +381,7 @@ $(document).ready(function() { - + [% END %] @@ -391,7 +391,7 @@ $(document).ready(function() { - + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 55e0dd0e91..bd5393c119 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -55,7 +55,7 @@ $(document).ready(function () { $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); }); [% IF print_slip %] - Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); + Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]&itemnumber=[% itemnumber %]'); [% END %] var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %] -- 2.39.5