Skip to content

Commit

Permalink
#1552 Fix order when a new custom field is added
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 12, 2020
1 parent 553b37c commit fce7f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/CaseSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class CaseSrv @Inject() (
)(implicit graph: Graph, authContext: AuthContext): Try[RichCustomField] =
for {
cf <- customFieldSrv.getOrFail(customFieldIdOrName)
ccf <- CustomFieldType.map(cf.`type`).setValue(CaseCustomField(), customFieldValue).map(_.order_=(order))
ccf <- CustomFieldType.map(cf.`type`).setValue(CaseCustomField().order_=(order), customFieldValue)
ccfe <- caseCustomFieldSrv.create(ccf, `case`, cf)
} yield RichCustomField(cf, ccfe)

Expand Down

0 comments on commit fce7f4a

Please sign in to comment.