From 7b4897de1cb6fc29fc4c19c800d82c4cfd7077cb Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 27 Jan 2005 22:33:16 +0000 Subject: [PATCH] Checking for the existence of flags (debarred, gonenoaddress. lost) and setting 'flagged' variable so the template knows whether or not to display the container for the error messages. --- members/moremember.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/members/moremember.pl b/members/moremember.pl index bcf56ecbc0..18c98e747f 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -71,6 +71,10 @@ $data->{'expiry'} = format_date($data->{'expiry'}); $data->{'dateofbirth'} = format_date($data->{'dateofbirth'}); $data->{'IS_ADULT'} = ($data->{'categorycode'} ne 'I'); +if($data->{'debarred'} || $data->{'gonenoaddress'} || $data->{'lost'}){ + $template->param(flagged =>1); +} + $data->{'ethnicity'} = fixEthnicity($data->{'ethnicity'}); $data->{&expand_sex_into_predicate($data->{'sex'})} = 1; -- 2.39.5