]> git.koha-community.org Git - koha.git/commit
Bug 26165: Fix duplication of large saved reports
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Aug 2020 10:44:28 +0000 (12:44 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 17 Aug 2020 14:41:47 +0000 (08:41 -0600)
commit50cbaa3262b11f9b4541464371477200ed84ca8a
tree133f8039677f2f4fcd8a17c2807b1b75789bd0f1
parent79855e9f5bdbcb3bdaedd33bed574b35eee5501d
Bug 26165: Fix duplication of large saved reports

If the combined character length of a saved report's
title, notes and SQL is too long then pressing the
'duplicate' button will lead to an error:

"Request-URI Too Long
The requested URL's length exceeds the capacity limit
for this server."

Test plan:
1. Create a simple SQL report and add a lot of text
   into the notes field (the combined URL lenth must be
   >8225 characters)
2. Save the report
3. Press the duplicate the report from the saved reports page

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 81f06881a45d7647481aa8a21354a772f3daff88)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
reports/guided_reports.pl