From 4b96a6fb35362d476d76cb7f509a7887529e6318 Mon Sep 17 00:00:00 2001 From: Vincent Debergue Date: Thu, 10 Jun 2021 17:52:43 +0200 Subject: [PATCH] #2068 Fix issue where case templates are mixed between orgs --- thehive/app/org/thp/thehive/services/AlertSrv.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thehive/app/org/thp/thehive/services/AlertSrv.scala b/thehive/app/org/thp/thehive/services/AlertSrv.scala index 6b9cbb4c04..8d91fd568f 100644 --- a/thehive/app/org/thp/thehive/services/AlertSrv.scala +++ b/thehive/app/org/thp/thehive/services/AlertSrv.scala @@ -243,7 +243,7 @@ class AlertSrv @Inject() ( caseTemplate <- alert .caseTemplate - .map(ct => caseTemplateSrv.get(EntityIdOrName(ct)).richCaseTemplate.getOrFail("CaseTemplate")) + .map(ct => caseTemplateSrv.get(EntityIdOrName(ct)).visible.richCaseTemplate.getOrFail("CaseTemplate")) .flip customField = alert.customFields.map(f => InputCustomFieldValue(f.name, f.value, f.order)) case0 = Case(