]> git.koha-community.org Git - koha.git/commit
Bug 32413: Fix repeated param names for JSON report
authorJohanna Räisä <johanna.raisa@gmail.com>
Tue, 8 Oct 2024 10:46:24 +0000 (13:46 +0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 30 Oct 2024 06:47:48 +0000 (07:47 +0100)
commitc2cc6869dd1730168bc1c13bb3e0dcaac89395bb
treef81eb6f6bafc1027be78cbe9739446e969ced8da
parent4b4a33c87714bea3385636857ffb27907ad93f21
Bug 32413: Fix repeated param names for JSON report

This patch fixes repeated param names for JSON report.

To test:

1) Create a report
    SELECT count(*) from items where homebranch = <<Branchcode>>
    UNION ALL
    SELECT count(*) from deleteditems where homebranch = <<Branchcode>>
2) Run the report as JSON, cgi-bin/koha/svc/report?id=<id>&sql_params=<Branchcode>
3) Check that the second value is 0
4) Apply the patch
5) Run the report as JSON again
6) Check that the second value has the correct value
7) prove t/db_dependent/Koha/Reports.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Report.pm
t/db_dependent/Koha/Reports.t