Fixed a bug that wouldn't allow admins to save a user profile if email address is required
This commit is contained in:
parent
d05c0af5af
commit
18dd11345c
2 changed files with 8 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue