fix: [internal] Attribute correlation toggle

pull/7400/head
Jakub Onderka 2021-05-10 08:25:00 +02:00
parent fcc1996a2e
commit 7d6e11f3f2
1 changed files with 1 additions and 1 deletions

View File

@ -2964,7 +2964,7 @@ class AttributesController extends AppController
if ($attribute['Attribute']['disable_correlation']) {
$attribute['Attribute']['disable_correlation'] = 0;
$this->Attribute->save($attribute);
$this->Attribute->__afterSaveCorrelation($attribute['Attribute'], false, $attribute);
ClassRegistry::init('Correlation')->afterSaveCorrelation($attribute['Attribute'], false, $attribute);
} else {
$attribute['Attribute']['disable_correlation'] = 1;
$this->Attribute->save($attribute);