From ca81da74c4c3a20c1b9c6d68155f4077d3602aee Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 18 Nov 2016 08:37:07 +0100 Subject: [PATCH] Bug 17642: [QA Follow-up] Issues_stats.pl is not plack safe Resolve: Variable "$ccodes" is not available at reports/issues_stats.pl line 358. Variable "$locations" is not available at reports/issues_stats.pl line 359. Variable "$ccodes" is not available at reports/issues_stats.pl line 358. Variable "$locations" is not available at reports/issues_stats.pl line 359. Test plan: Run the script. Choose Collection or Shelving Location. Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- reports/issues_stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index 63501be9bd..42413937a3 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -90,8 +90,8 @@ $template->param(do_it => $do_it, our $itemtypes = GetItemTypes(); our @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); -my $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; -my $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; +our $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; +our $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; our $Bsort1 = GetAuthorisedValues("Bsort1"); our $Bsort2 = GetAuthorisedValues("Bsort2"); -- 2.39.5