diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index cc14f25773..363890a229 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1324,7 +1324,6 @@ [% IF ( editsql ) %]
diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index 94cff9fe21..fb51ab27fa 100755 --- a/reports/guided_reports.pl +++ b/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"); + } } }