mirror of https://github.com/MISP/MISP
correlation
corrected very old error if one event got 3 attributes having the same value1 but variation in value2. (in the past the correlation got signed to the 1st attribute, not to the respective attributes.)pull/63/head
parent
c9e6062d11
commit
2b76d6011f
|
@ -732,7 +732,7 @@ class Attribute extends AppModel {
|
|||
);
|
||||
} else {
|
||||
// value2 also set, so search for both
|
||||
$conditions['OR'] = array(
|
||||
$conditions['AND'] = array( // TODO was OR
|
||||
'Attribute.value1' => array($attribute['value1'],$attribute['value2']),
|
||||
'Attribute.value2' => array($attribute['value1'],$attribute['value2']),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue