fix: disable_correlation now works correctly as expected

pull/2962/head
iglocska 2018-02-22 14:13:29 +01:00
parent 4b56e68a4a
commit 6fe812c595
1 changed files with 3 additions and 0 deletions

View File

@ -1617,6 +1617,9 @@ class Attribute extends AppModel {
}
public function __afterSaveCorrelation($a, $full = false, $event = false) {
if ($a['disable_correlation']) {
return true;
}
// Don't do any correlation if the type is a non correlating type
if (!in_array($a['type'], $this->nonCorrelatingTypes)) {
if (!$event) {