let CRM_Twingle_Profile class handle its validation
This commit is contained in:
parent
72bfa3fb2c
commit
c971b6f8eb
1 changed files with 3 additions and 0 deletions
|
@ -566,6 +566,9 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
|||
CRM_Core_Session::setStatus($e->getMessage(), E::ts('Warning'));
|
||||
}
|
||||
}
|
||||
catch (ProfileValidationError $e) {
|
||||
$this->setElementError($e->getAffectedFieldName(), $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
return parent::validate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue