mirror of https://github.com/MISP/MISP
fixed too restrictive generateCorrelation attribute fields
parent
ec566d6225
commit
3cc3b4f34d
|
@ -1497,9 +1497,9 @@ class Attribute extends AppModel {
|
|||
public function generateCorrelation() {
|
||||
$this->Correlation = ClassRegistry::init('Correlation');
|
||||
$this->Correlation->deleteAll(array(), false);
|
||||
$fields = array('Attribute.id', 'Attribute.type', 'Attribute.value1', 'Attribute.value2');
|
||||
//$fields = array('Attribute.id', 'Attribute.type', 'Attribute.value1', 'Attribute.value2', 'Attribute.event_id');
|
||||
// get all attributes..
|
||||
$attributes = $this->find('all', array('recursive' => -1, 'fields' => $fields));
|
||||
$attributes = $this->find('all', array('recursive' => -1));
|
||||
// for all attributes..
|
||||
foreach ($attributes as $k => $attribute) {
|
||||
$this->__afterSaveCorrelation($attribute['Attribute']);
|
||||
|
|
Loading…
Reference in New Issue