Datasource string values with leading zeros are converted to Integer when parsing the dataValue field in PHP wrappers #5384
Labels
Bug
F: DataSource
FP: Completed
Sync status with associated Feedback Item
jQuery
S: Wrappers (PHP)
SEV: Medium
Bug report
Datasource string values with leading zeros are converted to Integer when parsing the dataValue field. The issue is related to the following code in the wrappers, which returns the value without the leading zeros:
Reproduction of the problem
Use the following datasource setup with multicolumncombobox for example:
Open the dropdown.
Current behavior
The third value is 99
Expected/desired behavior
The third value is 099
note: the issue is caused by the internal usage of json_encode($value, JSON_NUMERIC_CHECK )
Environment
Feedback Item: https://feedback.telerik.com/php-ui/1440151-multiselect-setvalue-seems-to-convert-strings-with-leading-zeros-to-integer-when-parsing-the-key-field
The text was updated successfully, but these errors were encountered: