From 631d3006bc2a9e5f876bb9cefb5dbc0f44c9dd11 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Nov 2016 19:20:13 +0100 Subject: [PATCH] But 17578: (followup) amountoutstanding Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- 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 d11e9aff9f..f1fe2ffbb6 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.39.5