fix: [correlation] Fix correlation skipping when doing full correlation

pull/8572/head
Jakub Onderka 2022-09-08 09:45:02 +02:00
parent e8ea9877a3
commit 02a4c51406
1 changed files with 1 additions and 1 deletions

View File

@ -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'])) {