Skip to content

BaseObject comparison operator incorrect #4

@banjosteve

Description

@banjosteve

In the BaseObject, the method to check if data has changed needs to read: return $this->getData($key) !== $this->getOrigData($key);. Currently, if you set a new key and have the value equal 0, since the data on the init method will show null, != will evaluate true and skip the new field.

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