Bug 40515: Fix regexp for cud-mark_as_lost_and_notify
Signed-off-by: David Flater <flaterdavid@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit6cfac72f7e) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitafb9c9c531) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
6a76219c25
commit
8313da3aca
|
|
@ -58,7 +58,7 @@ if ( $op eq 'cud-cancel_reserve' and $reserve_id ) {
|
|||
$hold->cancel({ cancellation_reason => $cancellation_reason });
|
||||
push @messages, { type => 'message', code => 'hold_cancelled' };
|
||||
}
|
||||
} elsif ( $op =~ m|^mark_as_lost| ) {
|
||||
} elsif ( $op eq 'cud-mark_as_lost' or $op eq 'cud-mark_as_lost_and_notify' ) {
|
||||
my $hold = Koha::Holds->find( $reserve_id );
|
||||
die "wrong reserve_id" unless $hold; # This is a bit rude, but we are not supposed to get a wrong reserve_id
|
||||
my $item = $hold->item;
|
||||
|
|
|
|||
Loading…
Reference in New Issue