Bug 34478: ILL INTRA: delete to cud-delete
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
40a1ab9db1
commit
38b21ff3b8
2 changed files with 3 additions and 2 deletions
|
@ -57,6 +57,7 @@ Koha::Illrequest->check_url_param_deprecation($params);
|
|||
my $op = $params->{op} // $params->{method} // 'illlist';
|
||||
$op = 'cud-create' if $op eq 'create';
|
||||
$op = 'cud-cancel' if $op eq 'cancel';
|
||||
$op = 'cud-delete' if $op eq 'delete';
|
||||
|
||||
my ( $template, $patronnumber, $cookie ) = get_template_and_user( {
|
||||
template_name => 'ill/ill-requests.tt',
|
||||
|
@ -275,7 +276,7 @@ if ( $backends_available ) {
|
|||
# Currently still needs to be implemented.
|
||||
redirect_to_list();
|
||||
|
||||
} elsif ( $op eq 'cud-delete_confirm') {
|
||||
} elsif ( $op eq 'delete_confirm') {
|
||||
my $request = Koha::Illrequests->find($params->{illrequest_id});
|
||||
|
||||
$template->param(
|
||||
|
|
|
@ -505,7 +505,7 @@
|
|||
<h3>Are you sure you wish to delete this request?</h3>
|
||||
<form action="/cgi-bin/koha/ill/ill-requests.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="delete" />
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<input type="hidden" name="confirmed" value="1" />
|
||||
<input type="hidden" name="illrequest_id" value="[% request.id | html %]" />
|
||||
<button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
|
||||
|
|
Loading…
Reference in a new issue