Browse Source

fix validation error domain for notEmpty

$this->_validationDomain for default notEmpty message

notEmpty default error message
euromark 13 years ago
parent
commit
e85b2a072a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Model/Validator/CakeValidationSet.php

+ 1 - 1
lib/Cake/Model/Validator/CakeValidationSet.php

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