Koha/reports
Nick Clemens 8acf5912b3 Bug 9634: Allow for combining same paraneters in SQL reports
This patch combines report paramters with the same name and data type
(authorised value)

This presereves the past ability to provide all parameters as
'sql_params' in order to preserve existing public report links

To test:
 1 - Create a report that takes multiple parameters, e.g.:
SELECT <<cat>> AS one, <<dog|branches>> AS two, <<dog|YES_NO>> as three,
       <<cat>> as four, <<dog|branches>> as five
 2 - Run this report, note you are asked for five parameters
 3 - Apply patch
 4 - Update database
 5 - Run report, note you are asked for three params
 6 - Verify the results reflect the supplied parameters
 7 - Export the report and verify results
 8 - Alter the URL and provide 5 params as sql_params and no param_name
 variables i.e.
 http://localhost:8081/cgi-bin/koha/reports/guided_reports.pl?reports=1&phase=Run+this+report&sql_params=Banana&sql_params=CPL&sql_params=0&sql_params=Orange&sql_params=LPL
 9 - Verify results come out as expected. i.e. 5 different values that
       are those of the URL.

Signed-off-by: Victor Grousset <victor.grousset@biblibre.com>

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-11 16:45:08 -03:00
..
acquisitions_stats.pl Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
bor_issues_top.pl Bug 17925: Disable debugging in reports/bor_issues_top.pl 2017-05-12 09:09:15 -04:00
borrowers_out.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
borrowers_stats.pl Bug 8306: Patrons statistics, fix for patron activity choice 2017-02-14 14:11:04 +00:00
cash_register_stats.pl Bug 19551: Fix wrong order of operations in cash register report 2017-12-07 10:09:51 -03:00
cat_issues_top.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
catalogue_out.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
catalogue_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
dictionary.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
guided_reports.pl Bug 9634: Allow for combining same paraneters in SQL reports 2018-04-11 16:45:08 -03:00
issues_avg_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
issues_stats.pl Bug 19671: Map itemtypes to hash for correct display in issues_stats.pl 2018-02-13 12:50:18 -03:00
itemslost.pl Bug 9573: Add missing use statement 2018-02-17 18:32:14 -03:00
itemtypes.plugin Revert "Bug 19669: (QA follow-up) Remove itemstypes.plugin" 2018-01-30 12:24:48 -03:00
manager.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
orders_by_fund.pl Bug 18260: Koha::Biblio - Remove GetBiblio 2017-07-10 13:03:38 -03:00
reports-home.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
reserves_stats.pl Bug 17835: Replace GetItemTypes with Koha::ItemTypes 2017-04-14 10:43:51 -04:00
serials_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00