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
noud 2012-12-05 14:52:03 +01:00
parent c9e6062d11
commit 2b76d6011f
1 changed files with 1 additions and 1 deletions

View File

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