Bug 31276: Report results are limited to 999,999 no matter the actual number of results
authorKyle Hall <kyle@bywatersolutions.com>
Mon, 1 Aug 2022 14:47:04 +0000 (10:47 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 16 Aug 2022 12:14:18 +0000 (09:14 -0300)
commit5e29433bdc3a5ccd582ece6e2338c6e38e97c5d9
tree24ed5cdf956771d63aaf4c563a3875d19179ab16
parent3f1fe4f178df3423bc95f9a288aaefdda6a6e8c0
Bug 31276: Report results are limited to 999,999 no matter the actual number of results

In Koha, any report that uses C4::Reports::Guided will be limited to 999,999 rows. This is causing problems for larger libraries where some reports may have over a million results.

Test Plan:
1) Create a report "SELECT * FROM borrowers" and run it, note the number
   of results
2) Apply this patch
3) Add the line `<report_results_limit>3</report_results_limit>`
   within the <config> block of your koha-conf.xml
4) Restart all the things!
5) Run the report, download the results as a CSV
6) Note your CSV only has 4 lines, the header and 3 patrons

Signed-off-by: Rachael Laritz <rachael.laritz@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Reports/Guided.pm
debian/templates/koha-conf-site.xml.in
etc/koha-conf.xml