fix: [workflow:formatConverter] Typo in condition leading to ignore attribute tags if event tags were missing

pull/8692/head
Sami Mokaddem 2022-10-17 14:34:24 +02:00
parent 9b34115ab7
commit fe293c0cfd
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 1 deletions

View File

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