Skip to content

Commit

Permalink
Merge branch 'release/3.0.1' into release/3.0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr authored Jul 12, 2024
2 parents d249148 + 03497ce commit 63753e9
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,17 +473,8 @@ fun List<TrackedEntityDataValue>.toRuleDataValue(
""
}
}
} else if (de?.valueType()?.isNumeric == true) {
value = if (value.isNullOrEmpty()) {
""
} else {
try {
value.toFloat().toString()
} catch (e: Exception) {
Timber.e(e)
""
}
}
} else if (de?.valueType()?.isNumeric == true && value.isNullOrEmpty()) {
value = ""
}
RuleDataValue(
eventDate = event.eventDate()!!.toRuleEngineInstant(),
Expand Down

0 comments on commit 63753e9

Please sign in to comment.