From daa33114a2a20b2c6d22f18db8b2ea10e9cb71c1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 Oct 2017 15:40:24 -0300 Subject: [PATCH] Bug 17829: (follow-up) Move GetMember to Koha::Patron Do not call method on $patron if there is no other reserves Signed-off-by: Jonathan Druart https://bugs.koha-community.org/show_bug.cgi?id=15261 --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index c42e750..80f228a 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -174,7 +174,7 @@ if ( $query->param('reserve_id') ) { my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber); my $patron = Koha::Patrons->find( $nextreservinfo ); - my $name = $patron->surname . ", " . $patron->title . " " . $patron->firstname; + my $name = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : ''; if ( $messages->{'transfert'} ) { $template->param( itemtitle => $biblio->title, -- 2.7.4