From d0b2a3f362f114f5f31f63b9cd4dacbb66aa247a Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 9 Feb 2024 10:38:30 +0000 Subject: [PATCH] Bug 34478: (QA follow-up) Rename change to delete Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt | 2 +- tools/scheduler.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt index 9802dcfcbd..c93f57e8f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt @@ -91,7 +91,7 @@ [% FOREACH JOB IN JOBS %]
[% INCLUDE 'csrf-token.inc' %] - + [% JOB.TIME | html %] diff --git a/tools/scheduler.pl b/tools/scheduler.pl index 91a1cd23c8..cbeefc11db 100755 --- a/tools/scheduler.pl +++ b/tools/scheduler.pl @@ -49,7 +49,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); -my $op = $input->param('op'); +my $op = $input->param('op') // q{}; my $id = $input->param('id'); if ( $op eq 'cud-add' ) { @@ -100,7 +100,7 @@ if ( $op eq 'cud-add' ) { else { $template->param( job_add_failed => 1 ); } -} elsif ( $op eq 'cud-change' ) { +} elsif ( $op eq 'cud-delete' ) { my $jobid = $input->param('jobid'); remove_at_job($jobid); } -- 2.39.5