mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
force error on adding custom validation message (model)
This commit is contained in:
@@ -2227,7 +2227,7 @@ class e_front_model extends e_model
|
||||
*/
|
||||
public function addValidationError($message, $field_title = '', $error_code = '')
|
||||
{
|
||||
$this->getValidator()->addValidateMessage($field_title, $error_code, $message);
|
||||
$this->getValidator()->addValidateMessage($field_title, $error_code, $message)->setIsValidData(false);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user