fixed typo + better language checking
This commit is contained in:
parent
fbcd4fb252
commit
bfd2f7ed59
2 changed files with 6 additions and 1 deletions
|
|
@ -150,6 +150,11 @@ sub validateProfileData {
|
|||
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
|
||||
$warning .= '<li>'.$i18n->get(1072).'</li>';
|
||||
}
|
||||
if ($field->getId eq "language") {
|
||||
unless (exists WebGUI::International->new($session)->getLanguages($session)->{$fieldValue}) {
|
||||
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
return (\%data, $error, $warning);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue