restore previous (erroneous ?) behaviour

This commit is contained in:
Haithem Ben Ghorbal 2014-05-29 02:36:13 +02:00
parent 67af8b37db
commit 35c2a7ef31

View file

@ -1869,7 +1869,9 @@ class Model extends Object implements CakeEventListener {
}
}
$success = $this->data;
if (!empty($this->data)) {
$success = $this->data;
}
$this->_clearCache();
$this->validationErrors = array();