From f7c6fc20a071606130f2c670dd5aa41c5a53aab3 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Joonas Kylmälä --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 2ee0f2f1c7..b71579d8e4 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.30.2