Skip to content
Permalink
Browse files

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 9d19801cfa9687185991758b5c1c75d5d88c5a34
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -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;

0 comments on commit 9d19801

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.