From 524ae2ccfa058d605ec8e2f1373ae0ce0e72d4f1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Dec 2017 13:17:50 -0300 Subject: [PATCH] Bug 19671: Map itemtypes to hash for correct display in issues_stats.pl To test: 1 - Run the circulation wizard with itemtypes as columns, shelving locations as rows - display on screen 2 - Note all itemtype values are blank 3 - Switch rows/columns - same issue 4 - Apply patch 5 - Re-run reports 6 - Itemtypes should display correctly Signed-off-by: Claire Gravely Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit b3bab56c3168217878e0db921cebef0a97c01303) Signed-off-by: Fridolin Somers --- reports/issues_stats.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index 75c54baac6..200104e6ae 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -88,6 +88,8 @@ $sep = "\t" if ($sep eq 'tabulation'); $template->param(do_it => $do_it, ); +our $itemtypes = Koha::ItemTypes->search_with_localization->unblessed; + our @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); our $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; @@ -151,9 +153,6 @@ my @values; my %labels; my %select; -# create itemtype arrayref for