From fb8f045b7c3642615a64f701bf831d0de1940da6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Jun 2023 15:35:41 +0200 Subject: [PATCH] Bug 33966: (bug 23824 follow-up) Fix submit buttons for translated templates --- .../prog/en/modules/reports/guided_reports_start.tt | 4 ++-- reports/guided_reports.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 cbc7326debf..62df2bc7e2e 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 @@ -1360,8 +1360,8 @@
- - + + Cancel
diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index fb51ab27fa7..46792bf88c3 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' || $phase eq 'Update and run 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,7 +301,7 @@ elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){ cache_expiry_units => $cache_expiry_units, ); } - if ( $phase eq 'Update and run SQL' ) { + if ( $phase eq 'update_and_run_sql' ) { print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report"); } } -- 2.25.1