From 4cf55bbc63253edceffb4e873fb53b0a9f04d005 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Nov 2016 19:20:13 +0100 Subject: [PATCH] [SIGNED-OFF] But 17578: (followup) amountoutstanding Signed-off-by: Josef Moravec --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index d11e9af..f1fe2ff 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -306,7 +306,7 @@ if ( $query->param('place_reserve') ) { my $noreserves = 0; my $maxoutstanding = C4::Context->preference("maxoutstanding"); $template->param( noreserve => 1 ) unless $maxoutstanding; -my $amountoutstanding = GetMemberAccountRecords($borrowernumber); +my ( $amountoutstanding ) = GetMemberAccountRecords($borrowernumber); if ( $amountoutstanding && ($amountoutstanding > $maxoutstanding) ) { my $amount = sprintf "%.02f", $amountoutstanding; $template->param( message => 1 ); -- 2.1.4