From 47b359cc96b238250637db9ae9df2e176c4ea3ca 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 --- 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 2da53d86ce..3c1ba1facb 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -87,6 +87,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'] } ) }; @@ -150,9 +152,6 @@ my @values; my %labels; my %select; -# create itemtype arrayref for