From 202bed8229b99b85a6dcf805a31b85c9cbe7d1bc Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 25 May 2022 14:00:16 +0000 Subject: [PATCH] Bug 30847: Remove unused noreserve parameter This is defined but never used To test: 1 - git grep noreserve 2 - only one ocurrence 3 - Apply patch 4 - repeat, no ocurrence 5 - Note the plural has a few uses Signed-off-by: Owen Leonard --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 793125e1e9..1f6a126094 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -332,7 +332,6 @@ if ( $query->param('place_reserve') ) { # my $noreserves = 0; my $maxoutstanding = C4::Context->preference("maxoutstanding"); -$template->param( noreserve => 1 ) unless $maxoutstanding; my $amountoutstanding = $patron->account->balance; if ( $amountoutstanding && ($amountoutstanding > $maxoutstanding) ) { my $amount = sprintf "%.02f", $amountoutstanding; -- 2.20.1