Skip to content

AbstractMapper does not pass 0 values throughout if statement #1034

Open
@andriusvo

Description

@andriusvo

Summary
We want to set a index on an integer property of our class. The value can be any integer - 0, 1, 2 .. whatever. But then reindex command is executed, AbstractMapper function setDataValue is called and value is not going into 172 line if($value), because it is false then if(0). It should be if(null !== $value)

Steps to reproduce

  1. Set an index on any integer property there value can be 0.
  2. Run reindex command
  3. Value is not inserted into oro_search_index_integer DB table.

Actual Result
Value is not inserted into oro_search_index_integer DB table.

Expected Result
Value should be insrted into oro_search_index_integer DB table.

Actual code line -

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions