Skip to content
Snippets Groups Projects
Commit d9ee137c authored by Stefan Ruijsenaars's avatar Stefan Ruijsenaars
Browse files

Updated: Issue #2042411 by aerozeppelin, generalredneck: Float field type not...

Updated: Issue #2042411 by aerozeppelin, generalredneck: Float field type not validating number with decimal point but no decimal numbers
parent 6fa7f7a2
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ function number_field_presave($entity_type, $entity, $field, $instance, $langcod
}
}
if ($field['type'] == 'number_float') {
// Fix for #2042411 - Float field type not validating number with decimal
// Remove the decimal point from float values with decimal
// point but no decimal numbers.
foreach ($items as $delta => $item) {
if (isset($item['value'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment