From 30aa2150264deacfcf236b20520ad23314692ab7 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 11 Aug 2005 18:37:07 +0000 Subject: [PATCH] Sending 'flagged' variable to the template in BORROWER_INFO array to tell the template whether or not to show errors box --- opac/opac-user.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 2e5bcfeef6..1c70de4cb9 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -30,6 +30,10 @@ $borr->{'expiry'} = format_date($borr->{'expiry'}); $borr->{'dateofbirth'} = format_date($borr->{'dateofbirth'}); $borr->{'ethnicity'} = fixEthnicity($borr->{'ethnicity'}); +if($borr->{'debarred'} || $borr->{'gonenoaddress'} || $borr->{'lost'}){ + $borr->{'flagged'} =1; +} + if ($borr->{'amountoutstanding'} > 5) { $borr->{'amountoverfive'} = 1; } -- 2.39.5