mirror of https://github.com/MISP/MISP
fix: [workflow:formatConverter] Typo in condition leading to ignore attribute tags if event tags were missing
parent
9b34115ab7
commit
fe293c0cfd
|
@ -61,11 +61,13 @@ class WorkflowFormatConverterTool
|
|||
private static function __convertAttribute(array $attribute): array
|
||||
{
|
||||
$allTags = [];
|
||||
if (!empty($attribute['EventTag'])) {
|
||||
if (!empty($attribute['AttributeTag'])) {
|
||||
foreach ($attribute['AttributeTag'] as $attributeTag) {
|
||||
$attributeTag['Tag']['inherited'] = false;
|
||||
$allTags[] = $attributeTag['Tag'];
|
||||
}
|
||||
}
|
||||
if (!empty($attribute['EventTag'])) {
|
||||
foreach ($attribute['EventTag'] as $eventTag) {
|
||||
$eventTag['Tag']['inherited'] = true;
|
||||
$allTags[] = $eventTag['Tag'];
|
||||
|
|
Loading…
Reference in New Issue