Skip to content

Commit

Permalink
#357 Merge descriptions when merging alert into an existing case
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 14, 2017
1 parent a924ab2 commit a138610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-misp/app/connectors/misp/MispSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class MispSrv @Inject() (
def mergeWithCase(alert: Alert, caze: Case)(implicit authContext: AuthContext): Future[Case] = {
for {
_ importArtifacts(alert, caze)
description = caze.description() + s"\n \n#### Merged with MISP event ${alert.title()}"
description = caze.description() + s"\n \n#### Merged with MISP event ${alert.title()}\n\n${alert.description().trim}"
updatedCase caseSrv.update(caze, Fields.empty.set("description", description))
} yield updatedCase
}
Expand Down

0 comments on commit a138610

Please sign in to comment.