From 70a25f1ef9bb38d9628322e4c3b6c2b9bc506ee9 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 Rebased-by: Victor Grousset/tuxayo --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 5575614e84..cb1ed46752 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -329,7 +329,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.37.2