Open
Description
Pimcore version
2024.2
Steps to reproduce
- Go to Simple-rest-service → Schema definition → Data Object Classes → Object settings (Mapping)
- Add an operator alias to a numeric field
- Set the current value of the given numeric attribute to "0"
- Observe in the preview value is a blank string
Tested on pimcore/data-hub-simple-rest module versions v3.0.2 and v3.0.3 (latest)
Actual Behavior
Once numeric fields are wrapped by an Alias (or any other) operator and in cases the current numeric value of the attribute is set to 0 - it results in data being transformed/flattened to a blank string.
With operator:
1 => 1
-1 => -1
"" => ""
0 => "" flattened
All other (positive/negative) numeric values don’t seem to be affected by the issue.
Expected Behavior
No data flattening, correct reflection of values as when no wrapper is in use.