From d7e9e40709597520dad7eb5269d21e1c8fb6bafc 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 Content-Type: text/plain; charset=utf-8 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 --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 39153bb..521b072 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.1.4