From a8c6c134d8e7322d935af8e95231f942f55c0342 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 Signed-off-by: Katrin Fischer Signed-off-by: Andrii Nugged Signed-off-by: Tomas Cohen Arazi --- .../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 cbc7326deb..62df2bc7e2 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 fb51ab27fa..46792bf88c 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.39.5