mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Issue #12376
This commit is contained in:
parent
ee02d4274f
commit
1aa0108354
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ class TranslateBehavior extends ModelBehavior {
|
|||
public function afterFind(Model $Model, $results, $primary = false) {
|
||||
$Model->virtualFields = $this->runtime[$Model->alias]['virtualFields'];
|
||||
|
||||
$this->runtime[$Model->alias]['virtualFields'] = $this->runtime[$Model->alias]['fields'] = array();
|
||||
$this->runtime[$Model->alias]['virtualFields'] = array();
|
||||
if (!empty($this->runtime[$Model->alias]['restoreFields'])) {
|
||||
$this->runtime[$Model->alias]['fields'] = $this->runtime[$Model->alias]['restoreFields'];
|
||||
unset($this->runtime[$Model->alias]['restoreFields']);
|
||||
|
|
Loading…
Add table
Reference in a new issue