Skip to content

Bug: Transformer does not allow setting attribute/property to false #1565

@Menrath

Description

@Menrath

It should be possible to set an attribute to false. Within the Base::transform_object_properties() function this does not work anymore:

Introduced in #1301

Updates Base::transform_object_properties() and Base_Object::to_array() to not only discard null values but also empty values unless they're false.

Seems like empty( false ) evaluates to true, which I also did not know.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions