Koha-clms/reports
Jonathan Druart 70ca305311 Bug 17294: Make reserves_stats.pl plack safe
Lot of errors are raised by this script under plack because of var scope
issues:

Variable "$ccodes" is not available at
/home/koha/src/reports/reserves_stats.pl line 337.
Variable "$locations" is not available at
/home/koha/src/reports/reserves_stats.pl line 338.
Variable "$itemtypes" is not available at
/home/koha/src/reports/reserves_stats.pl line 339.
Variable "$Bsort1" is not available at
/home/koha/src/reports/reserves_stats.pl line 344.
Variable "$Bsort2" is not available at
/home/koha/src/reports/reserves_stats.pl line 350.
Variable "@patron_categories" is not available at
/home/koha/src/reports/reserves_stats.pl line 356.

The lazy way to fix that is that reinit them from the subroutines they
are used.

Test plan:
Execute the report, after this patch applied you won't see the error in
the log.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer  <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit f66cc4dfcc)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 1ade46e5a4)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2016-10-14 13:53:02 +02:00
..
acquisitions_stats.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
bor_issues_top.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
borrowers_out.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
borrowers_stats.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
cat_issues_top.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
catalogue_out.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
catalogue_stats.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
dictionary.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
guided_reports.pl Bug 17053 Clearing search term in Reports 2016-08-23 17:30:21 +02:00
issues_avg_stats.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
issues_by_borrower_category.plugin Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
issues_stats.pl Bug 16760: fix Circulation Statistics wizard under Plack 2016-08-16 16:19:13 +02:00
itemslost.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
itemtypes.plugin Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
manager.pl Bug 16154: CGI->multi_param - Declare a list 2016-05-16 14:38:51 +02:00
reports-home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
reserves_stats.pl Bug 17294: Make reserves_stats.pl plack safe 2016-10-14 13:53:02 +02:00
serials_stats.pl Bug 14961: Remove C4::Dates from files reports/*_stats.pl 2015-10-26 11:19:36 -03:00
stats.print.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
stats.screen.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00