mirror of https://github.com/MISP/MISP
fix: [internal] Capturing sightings for attributes
parent
b86c58c8ae
commit
b4fe070ff7
|
@ -12,6 +12,7 @@ App::uses('ComplexTypeTool', 'Tools');
|
|||
/**
|
||||
* @property Event $Event
|
||||
* @property AttributeTag $AttributeTag
|
||||
* @property Sighting $Sighting
|
||||
* @property-read array $typeDefinitions
|
||||
* @property-read array $categoryDefinitions
|
||||
*/
|
||||
|
@ -3979,7 +3980,7 @@ class Attribute extends AppModel
|
|||
}
|
||||
}
|
||||
if (!empty($attribute['Sighting'])) {
|
||||
$this->Sighting->captureSighting($attribute['Sighting'], $this->id, $eventId, $user);
|
||||
$this->Sighting->captureSightings($attribute['Sighting'], $this->id, $eventId, $user);
|
||||
}
|
||||
}
|
||||
if (!empty($this->validationErrors)) {
|
||||
|
|
Loading…
Reference in New Issue