Skip to content

Commit

Permalink
#929 If not provided, use caseTemplate from alert when creating case
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 2, 2019
1 parent 2ef0838 commit 765a54d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive-backend/app/controllers/AlertCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class AlertCtrl @Inject()(
for {
alert alertSrv.get(id)
customCaseTemplate = request.body.getString("caseTemplate")
.orElse(alert.caseTemplate())
caze alertSrv.createCase(alert, customCaseTemplate)
} yield renderer.toOutput(CREATED, caze)
}
Expand Down

0 comments on commit 765a54d

Please sign in to comment.