From 0e3ec61e8b58f5d8b7bba2ab091d43b2090b0e0b Mon Sep 17 00:00:00 2001 From: Jochen Kemnade Date: Fri, 18 Oct 2024 12:40:22 +0200 Subject: [PATCH] fix TISAX reports in multi-domain units verinice-veo#3117, verinice-veo#3118 --- src/main/resources/templates/tisax-compact.md | 2 +- src/main/resources/templates/tisax-detailed.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/tisax-compact.md b/src/main/resources/templates/tisax-compact.md index 7ca71c3..2b01094 100644 --- a/src/main/resources/templates/tisax-compact.md +++ b/src/main/resources/templates/tisax-compact.md @@ -56,7 +56,7 @@ table.maturitytable > tbody > tr > td:nth-child(4) { <#assign domain=domains?filter(it->it.name == 'TISAX')?filter(it->isa.domains?keys?seq_contains(it.id))?sort_by("createdAt")?last /> -<#assign scope = scopes?filter(it->it.domains[domain.id].subType == 'SCP_Organization')?filter(it->it.members?map(it->it._self)?seq_contains(isa._self))?first! /> +<#assign scope = scopes?filter(it->(it.domains[domain.id].subType)! == 'SCP_Organization')?filter(it->it.members?map(it->it._self)?seq_contains(isa._self))?first! /> <#assign usedControls = isa.getMembersWithType('control')> diff --git a/src/main/resources/templates/tisax-detailed.md b/src/main/resources/templates/tisax-detailed.md index f8ffc8e..4b4bd37 100644 --- a/src/main/resources/templates/tisax-detailed.md +++ b/src/main/resources/templates/tisax-detailed.md @@ -69,7 +69,7 @@ a[href] { <#assign domain=domains?filter(it->it.name == 'TISAX')?filter(it->isa.domains?keys?seq_contains(it.id))?sort_by("createdAt")?last /> -<#assign scope = scopes?filter(it->it.domains[domain.id].subType == 'SCP_Organization')?filter(it->it.members?map(it->it._self)?seq_contains(isa._self))?first! /> +<#assign scope = scopes?filter(it->(it.domains[domain.id].subType)! == 'SCP_Organization')?filter(it->it.members?map(it->it._self)?seq_contains(isa._self))?first! /> <#assign usedControls = isa.getMembersWithType('control')>