Skip to content

[Bug]: Grid operator alias flattening data to a blank string #18463

Open
@ewa-scandi

Description

@ewa-scandi

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.

https://prnt.sc/C6gdozwLp0Uy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions