https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30856

--- Comment #11 from Jonathan Druart <[email protected]> ---
Replace

ToggleSuspend( $reserve_id, $suspend_until ) if
CanReserveBeCanceledFromOpac($reserve_id, $borrowernumber);

with

my $hold = Koha::Patrons->find($borrowernumber)->holds->find($reserve_id);
ToggleSuspend( $reserve_id, $suspend_until ) if $hold &&
$hold->is_cancelable_from_opac

I thought at the beginning that there were more logic behind the "is
cancelable", but it's actually trivial.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to