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> (cherry picked from commitfa534d464c) Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com> (cherry picked from commit5de9cb41df) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitfab0b24d24) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
50aaed773b
commit
8a15fb8dbb
|
|
@ -814,6 +814,7 @@ elsif ($phase eq 'Run this report'){
|
|||
}
|
||||
$template->param('sql' => $sql,
|
||||
'name' => $name,
|
||||
'notes' => $notes,
|
||||
'sql_params' => \@tmpl_parameters,
|
||||
'auth_val_errors' => \@authval_errors,
|
||||
'enter_params' => 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue