Fixed a bug that wouldn't allow admins to save a user profile if email address is required

This commit is contained in:
Frank Dillon 2008-12-23 03:35:58 +00:00
parent d05c0af5af
commit 18dd11345c
2 changed files with 8 additions and 3 deletions

View file

@ -1190,7 +1190,7 @@ sub validateProfileDataFromForm {
push(@{$errorFields},$fieldId);
}
#Duplicate emails throw warnings
elsif($fieldId eq "email" && $field->isDuplicate($fieldValue)) {
elsif($fieldId eq "email" && $field->isDuplicate($fieldValue,$self->userId)) {
$errorCat = $field->get("profileCategoryId") unless (defined $errorCat);
push (@{$warnings},$i18n->get(1072));
push(@{$warnFields},$fieldId);