From bd5cf23b745223546be66338a790caffe30d376f Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 27 Jan 2005 22:32:18 +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