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:
parent
e2691e0870
commit
d0b2a3f362
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue