From e188b5c89968af20c3adc543ea098995d42f5e2b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 21 Jun 2021 08:47:59 +0000 Subject: [PATCH] Bug 28581: (QA follow-up) Fix method on unblessed reference Speaks for itself. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- C4/Reserves.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 8fb05c1e37..83222dc1c5 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1847,9 +1847,9 @@ sub _koha_notify_reserve { message_name => 'Hold_Filled' } ); - my $library = Koha::Libraries->find( $hold->branchcode )->unblessed; - + my $library = Koha::Libraries->find( $hold->branchcode ); my $admin_email_address = $library->from_email_address; + $library = $library->unblessed; my %letter_params = ( module => 'reserves', -- 2.39.5