mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +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 = '')
|
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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user