Bug 27513: Add notes to variables for report parameters template
authorPhilip Orr <philip.orr@lmscloud.de>
Fri, 31 Mar 2023 07:12:48 +0000 (07:12 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 12:47:25 +0000 (09:47 -0300)
commitfa534d464c63739f4c836a43966802caa09b0ca8
tree4a74e52501fb839be898da12b0760914cdb6a94c
parent153391e85f731c83bdf2ab137562f09d2f36bd6d
Bug 27513: Add notes to variables for report parameters template

This patch adds the TT variable 'notes' to the variables
that guided_reports.pl passes to the template guided_reports_start.tt
during SQL parameters entry in the phase 'Run this report'.

To test:
1. apply the patch
2. navigate to Reports -> Guided Reports -> Create from SQL
3. create an SQL report that includes at least one parameter, e.g.:
   SELECT barcode FROM items WHERE homebranch=<<Select library|branches>>
   the actual SQL and name of the report doesn't matter much, just make
   sure that you also put a note e.g. "Test text for display" in the
   field "Notes:" before you save the report.
4. run the report
5. the note you entered should now be displayed below the heading
   "Enter parameters for report..."

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
reports/guided_reports.pl