Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clear data and validationErrors *after* calling clearCache().
Having both properties cleaned after clearCache() means that you can use
the model data in specialized clearCache() implementations.

Fixes #3386
  • Loading branch information
markstory committed Apr 24, 2014
1 parent 5eff011 commit 9d19801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -1865,9 +1865,9 @@ public function save($data = null, $validate = true, $fieldList = array()) {
$success = $this->data;
}

$this->data = false;
$this->_clearCache();
$this->validationErrors = array();
$this->data = false;
}

$this->whitelist = $_whitelist;
Expand Down

0 comments on commit 9d19801

Please sign in to comment.