Bug 30847: Don't fetch patron twice
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Rebased-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
14b3e40fb0
commit
abe3117368
|
|
@ -262,7 +262,6 @@ if ( $query->param('place_reserve') ) {
|
|||
$itemtype = undef if $itemNum;
|
||||
|
||||
my $rank = $biblioData->{rank};
|
||||
my $patron = Koha::Patrons->find( $borrowernumber );
|
||||
if ( $item ) {
|
||||
$canreserve = 1 if CanItemBeReserved( $patron, $item, $branch )->{status} eq 'OK';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue