fix validation error domain for notEmpty

$this->_validationDomain for default notEmpty message

notEmpty default error message
This commit is contained in:
euromark 2012-10-07 14:17:31 +02:00
parent 972d5752bf
commit e85b2a072a

View file

@ -280,7 +280,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
$message = __d($this->_validationDomain, $name);
}
} else {
$message = __d('cake_dev', 'This field cannot be left blank');
$message = __d('cake', 'This field cannot be left blank');
}
return $message;