From 7f83e703abd69383cb80ca36cd8219959f1ab205 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 --- Koha/Hold.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index 6db7caf9fd..7754691238 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -348,8 +348,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