Skip to content

NumericField Zend localization #7

Description

@unknown42

Hi, I got a problem saving objects using non-english number format (point instead of comma as the comma separator).
I tracked it down to the UpdateFormExtension where the value for the field is set: the numeric field checks if the provided $value is float, int or the second $data parameter is an instance of DataObject.
If the value now is a non-english number-string, it isn't either float nor integer, so we need to check if the $data parameter is a DataObject.

The solution would be to add $rel as second parameter to $field->setValue($value); in UpdateFormExtension.php on line 34 so it is $field->setValue($value, $rel).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions