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); }