From 02a4c51406de4a6a66574bf476ebcce1426abbfb Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Thu, 8 Sep 2022 09:45:02 +0200 Subject: [PATCH] fix: [correlation] Fix correlation skipping when doing full correlation --- app/Model/Correlation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Correlation.php b/app/Model/Correlation.php index 42c1da648..223b2b410 100644 --- a/app/Model/Correlation.php +++ b/app/Model/Correlation.php @@ -369,7 +369,7 @@ class Correlation extends AppModel } foreach ($correlatingAttributes as $b) { // On a full correlation, only correlate with attributes that have a higher ID to avoid duplicate correlations - if ($full && $b['Attribute']['id'] < $b['Attribute']['id']) { + if ($full && $a['Attribute']['id'] < $b['Attribute']['id']) { continue; } if (isset($b['Attribute']['value1'])) {