diff --git a/Koha/Patron.pm b/Koha/Patron.pm index ffdd7e3c23..3790884c97 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -66,8 +66,7 @@ sub delete { $self->_result->result_source->schema->txn_do( sub { # Delete Patron's holds - # FIXME Should be $patron->get_holds - $_->delete for Koha::Holds->search( { borrowernumber => $self->borrowernumber } ); + $self->holds->delete; # Delete all lists and all shares of this borrower # Consistent with the approach Koha uses on deleting individual lists