mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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
This commit is contained in:
parent
5eff011711
commit
9d19801cfa
1 changed files with 1 additions and 1 deletions
|
@ -1865,9 +1865,9 @@ class Model extends Object implements CakeEventListener {
|
|||
$success = $this->data;
|
||||
}
|
||||
|
||||
$this->data = false;
|
||||
$this->_clearCache();
|
||||
$this->validationErrors = array();
|
||||
$this->data = false;
|
||||
}
|
||||
|
||||
$this->whitelist = $_whitelist;
|
||||
|
|
Loading…
Reference in a new issue