diff --git a/circ/returns.pl b/circ/returns.pl index f3182464df..72e004a795 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -179,8 +179,8 @@ if ( $query->param('reserve_id') && $op eq 'cud-affect_reserve') { # FIXME do we need to do this if we didn't take the cancel_reserve branch above? my ( undef, $nextreservinfo, undef ) = CheckReserves($item); - my $patron = Koha::Patrons->find( $nextreservinfo->{'borrowernumber'} ); if ( $userenv_branch ne $nextreservinfo->{'branchcode'} ) { + my $patron = Koha::Patrons->find( $nextreservinfo->{'borrowernumber'} ); $template->param( itemtitle => $biblio->title, itembiblionumber => $biblio->biblionumber,