Skip to content

Commit

Permalink
TheHive-Project#2068 Fix issue where case templates are mixed between…
Browse files Browse the repository at this point in the history
… orgs
  • Loading branch information
vdebergue committed Jun 10, 2021
1 parent 9eb14bc commit 4b96a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/AlertSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4b96a6f

Please sign in to comment.