From f1ecd4eef11cfa5d807ec66c63d963a56367e571 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Feb 2024 08:32:50 +0100 Subject: [PATCH] Bug 34478: guided_reports - run is stateless Signed-off-by: Jonathan Druart --- .../prog/en/modules/reports/guided_reports_start.tt | 9 ++++----- reports/guided_reports.pl | 4 ++-- 2 files changed, 6 insertions(+), 7 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 b3d4f9e0e7..193c7884fe 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 @@ -849,9 +849,8 @@ Edit SQL [% ELSE # IF ( auth_val_error ) %] -
+ -

Enter parameters for report [% name | html %]:

[% IF ( notes ) %]

[% notes | html %]

@@ -891,7 +890,7 @@
- +
@@ -1026,8 +1025,8 @@ [%- END -%] [% END %] -
- + + [% FOREACH p IN sql_params %] diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index a6b9bcf248..d57e7db141 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -246,7 +246,7 @@ elsif ( $op eq 'cud-update_sql' || $op eq 'cud-update_and_run_sql' ){ ); } if ( $op eq 'cud-update_and_run_sql' ) { - $op = 'cud-run'; + $op = 'run'; } } } @@ -756,7 +756,7 @@ elsif ( $op eq 'add_form_sql' || $op eq 'duplicate' ) { ); } -if ($op eq 'cud-run'){ +if ($op eq 'run'){ # execute a saved report my $limit = $input->param('limit') || 20; my $offset = 0; -- 2.39.5