From 0c73344051732d204d2432464a0a722fa7be406d Mon Sep 17 00:00:00 2001 From: Jochen Kemnade Date: Mon, 2 Dec 2024 11:10:03 +0100 Subject: [PATCH] fix colors in risk matrixes verinice-veo#3076 --- src/main/resources/templates/dpra.md | 3 ++- src/main/resources/templates/itbp-a5.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/dpra.md b/src/main/resources/templates/dpra.md index 411dbad..bac2bf8 100644 --- a/src/main/resources/templates/dpra.md +++ b/src/main/resources/templates/dpra.md @@ -243,7 +243,8 @@ ${potentialImpact.translations[.lang].name} <#list riskDefinition.probability.levels as probability> <#assign risk=category.valueMatrix[potentialImpact.ordinalValue][probability.ordinalValue] /> -<@matrixCell risk.htmlColor risk.translations[.lang].name /> +<#assign riskDef=riskDefinition.riskValues[risk.ordinalValue] /> +<@matrixCell riskDef.htmlColor riskDef.translations[.lang].name /> diff --git a/src/main/resources/templates/itbp-a5.md b/src/main/resources/templates/itbp-a5.md index 287158c..3917fca 100644 --- a/src/main/resources/templates/itbp-a5.md +++ b/src/main/resources/templates/itbp-a5.md @@ -278,7 +278,8 @@ ${potentialImpact.translations[.lang].name} <#list riskDefinition.probability.levels as probability> <#assign risk=category.valueMatrix[potentialImpact.ordinalValue][probability.ordinalValue] /> -<@matrixCell risk.htmlColor risk.translations[.lang].name /> +<#assign riskDef=riskDefinition.riskValues[risk.ordinalValue] /> +<@matrixCell riskDef.htmlColor riskDef.translations[.lang].name />