From 585001c6d3f18b4420f785778aab0889df43357b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 29 Jan 2020 13:24:34 +0000 Subject: [PATCH] Bug 24529: Silence another uninitialised value warning Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- C4/Reserves.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index be869012f5..8e6dca8a39 100644 --- a/C4/Reserves.pm +++ b/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; -- 2.39.5