From c73b6d51dac3d07d32135f0f891cc6418101a53b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 7 Sep 2017 14:34:18 +0200 Subject: [PATCH] Bug 19059: [QA Follow-up] Typo holds for hold Resolves: The method found is not covered by tests at C4/Reserves.pm line 815. Test plan: Run t/db_dependent/Holds/CancelReserves.t Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 39153bb1a8..521b072368 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -812,7 +812,7 @@ sub CancelExpiredReserves { next if !$cancel_on_holidays && $calendar->is_holiday( $today ); my $cancel_params = {}; - if ( $holds->found eq 'W' ) { + if ( $hold->found eq 'W' ) { $cancel_params->{charge_cancel_fee} = 1; } $hold->cancel( $cancel_params ); -- 2.39.5