Bug 34478: (QA follow-up) Rename change to delete

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2024-02-09 10:38:30 +00:00 committed by Jonathan Druart
parent e2691e0870
commit d0b2a3f362
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@
[% FOREACH JOB IN JOBS %]
<form action="scheduler.pl" method="post">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-change" />
<input type="hidden" name="op" value="cud-delete" />
<tr>
<td>[% JOB.TIME | html %]</td>

View file

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