1
0
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:
secretr
2012-03-16 15:16:54 +00:00
parent f478b4274b
commit cfe9091500

View File

@@ -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;
}