@@ -, +, @@ - Apply this patch - Create a new report - Click the new "Update and run SQL" button - Verify the report was saved and the results are displayed --- .../prog/en/modules/reports/guided_reports_start.tt | 4 ++-- reports/guided_reports.pl | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1324,7 +1324,6 @@ [% IF ( editsql ) %]
-

Edit SQL report

@@ -1382,7 +1381,8 @@
- + + Cancel
--- a/reports/guided_reports.pl +++ a/reports/guided_reports.pl @@ -209,7 +209,7 @@ elsif ( $phase eq 'Edit SQL'){ ); } -elsif ( $phase eq 'Update SQL'){ +elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){ my $id = $input->param('id'); my $sql = $input->param('sql'); my $reportname = $input->param('reportname'); @@ -301,6 +301,9 @@ elsif ( $phase eq 'Update SQL'){ cache_expiry_units => $cache_expiry_units, ); } + if ( $phase eq 'Update and run SQL' ) { + print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report"); + } } } --