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.
This commit is contained in:
parent
904a4330fd
commit
7b4897de1c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue