Browse Source

Bug 24529: Silence another uninitialised value warning

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Martin Renvoize 3 years ago
parent
commit
585001c6d3
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      C4/Reserves.pm

2
C4/Reserves.pm

@ -1836,6 +1836,8 @@ If $cancelreserve boolean is set to true, it will remove existing reserve
sub MoveReserve {
my ( $itemnumber, $borrowernumber, $cancelreserve ) = @_;
$cancelreserve //= 0;
my $lookahead = C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds
my ( $restype, $res, undef ) = CheckReserves( $itemnumber, undef, $lookahead );
return unless $res;

Loading…
Cancel
Save