From cfe909150032a5a4dfe91e23a90fd7d986afea33 Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 16 Mar 2012 15:16:54 +0000 Subject: [PATCH] force error on adding custom validation message (model) --- e107_handlers/model_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/model_class.php b/e107_handlers/model_class.php index ef46ebd98..450fc62cc 100644 --- a/e107_handlers/model_class.php +++ b/e107_handlers/model_class.php @@ -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; }