Skip to content

Creating custom customer attribute with default value 0 will cause not saving value for customer entity #14510

Closed
@victortodoran

Description

@victortodoran

Preconditions
Magento 2.2.2

Steps to reproduce
Create custom customer attribute of type int with default value 0

Expected Result
When a new customer is created value 0 will be set for above custom attribute if no other value was explicitly provided

Actual result
No value is saved for above custom customer attribute when no value is explicitly provided

FWI:
The customer attribute was created by the book and setting another default (e.g 123) will have the expected result

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedProgress: needs update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions