Skip to content

Commit

Permalink
#1356 Fix integer custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 25, 2020
1 parent a2232ba commit 310076b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ object InputCustomFieldValue {
obj.get("integer") match {
case FUndefined => None
case FNull => Some(Good(InputCustomFieldValue(name, None, obj.getNumber("order").map(_.toInt))))
case FNumber(value) => Some(Good(InputCustomFieldValue(name, Some(value.toLong), obj.getNumber("order").map(_.toInt))))
case FNumber(value) => Some(Good(InputCustomFieldValue(name, Some(value.toInt), obj.getNumber("order").map(_.toInt))))
case other => Some(Bad(One(InvalidFormatAttributeError(s"customField.$name.integer", "integer", Set.empty, other))))
}

Expand Down

0 comments on commit 310076b

Please sign in to comment.