let CRM_Twingle_Profile class handle its validation

This commit is contained in:
Marc Michalsky 2023-08-07 16:46:57 +02:00 committed by Jens Schuppe
parent 72bfa3fb2c
commit c971b6f8eb

View file

@ -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();