Skip to content

Commit

Permalink
#518 Merge sighted flags when merging cases
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 13, 2018
1 parent 6b70a55 commit de8dff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive-backend/app/services/CaseMergeSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class CaseMergeSrv @Inject() (
.set("tags", JsArray(sameArtifacts.flatMap(_.tags()).distinct.map(JsString)))
.set("ioc", JsBoolean(sameArtifacts.map(_.ioc()).reduce(_ || _)))
.set("status", mergeArtifactStatus(sameArtifacts))
.set("sighted", JsBoolean(sameArtifacts.map(_.sighted()).reduce(_ || _)))
// Merged artifact is created under new case
artifactSrv
.create(newCase, fields)
Expand Down

0 comments on commit de8dff2

Please sign in to comment.