diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 398449559..1b1f51209 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -1710,7 +1710,7 @@ class Model extends Overloadable { ), $validator); if (empty($validator['on']) || ($validator['on'] == 'create' && !$this->exists()) || ($validator['on'] == 'update' && $this->exists())) { - if ((!isset($data[$fieldName]) && $validator['required'] == true) || (isset($data[$fieldName]) && empty($data[$fieldName]) && $validator['allowEmpty'] == false)) { + if ((!isset($data[$fieldName]) && $validator['required'] == true) || (isset($data[$fieldName]) && (empty($data[$fieldName]) && $data[$fieldName] != 0) && $validator['allowEmpty'] == false)) { $this->invalidate($fieldName, $validator['message']); } elseif (isset($data[$fieldName])) { if (is_array($validator['rule'])) {