From f71641f0b7ba887da6ad2f2dbc97419fc1be79cf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Nov 2020 11:07:53 +0100 Subject: [PATCH] Bug 26988: No need to check if hold is linked to a patron Holds are deleted along with patrons. Signed-off-by: Jonathan Druart (cherry picked from commit 7f83e703abd69383cb80ca36cd8219959f1ab205) Signed-off-by: Andrew Fuerste-Henry --- Koha/Hold.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index 63b135b424..2da4aefba5 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -292,8 +292,6 @@ sub patron { my ($self) = @_; my $patron_rs = $self->_result->patron; - return unless $patron_rs; - return Koha::Patron->_new_from_dbic($patron_rs); } -- 2.39.5