Koha-clms/reports
Jonathan Druart b4d77d7c78 Bug 13578: Make sure the 'public' parameter is passed to the last step
If no caching system is up ($usecache == 0), the public parameter is
lost on the step 3.
The hash passed to the template looks like:
   'cache_expiry', 300,
   'cache_expiry_units',
   'public', 1
So the template receives cache_expiry = 300, cache_expiry_units =
'public' and 1 = undef.

This patch fixes the problem passing the cache_expiry* parameters only
if the usecache is set.

Test plan:
0/ Disable any caching system
1/ Create a new public report and go up to the 6th step, save the report
and verify the report is created as public
2/ Enable a caching system
2/ Create a public report with a cache expiry value, save it and verify
the report is created as public and the cache expiry value is correct.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit fe986573dd)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2015-03-14 11:46:36 +13:00
..
acquisitions_stats.pl Bug 11349: Make the QA script happy 2014-07-17 11:06:06 -03:00
bor_issues_top.pl Bug 12587 - Improve output of filter information on patrons with the most checkouts report 2014-09-09 10:39:18 -03:00
borrowers_out.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
borrowers_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
cat_issues_top.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
catalogue_out.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
catalogue_stats.pl Bug 12567: Make catalog statistics wizard publication year work for MARC21 2014-12-02 08:23:03 +13:00
dictionary.pl Bug 11672: Untranslatable dropdown on Guided Reports and dictionary 2014-09-23 15:32:21 -03:00
guided_reports.pl Bug 13578: Make sure the 'public' parameter is passed to the last step 2015-03-14 11:46:36 +13:00
issues_avg_stats.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
issues_by_borrower_category.plugin Bug 9457: [ENH] Ordering branches should be case independent (2) 2013-03-20 15:35:58 -04:00
issues_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
itemslost.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
itemtypes.plugin Bug 9457 - Followup - Ordering branches should be case independent (2) 2013-03-20 15:36:19 -04:00
manager.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
reports-home.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
reservereport.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
reserves_stats.pl Bug 12707: Remove CGI::scrolling_list from some Reports 2014-08-15 14:47:23 -03:00
serials_stats.pl Bug 12706: Remove CGI::scrolling_list from serial_stats.pl 2014-08-15 14:45:11 -03:00
stats.print.pl Bug 2505 - Add commented use warnings where missing in the reports/ directory 2010-04-21 20:19:57 +12:00
stats.screen.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00