Skip to content

Customer EAV Decimal Attribute required allow 0 #20030

Closed
@nthurston

Description

@nthurston

Preconditions (*)

  1. Magento Version 2.2.6

Steps to reproduce (*)

  1. Create a new required customer attribute of type decimal with a default of 0 e.g.
'bal' => [
  'is_used_in_grid' => false,
  'is_visible_in_grid' => false,
  'is_filterable_in_grid' => false,
  'is_searchable_in_grid' => false,
  'type' => 'decimal',
  'label' => 'AR Balance',
  'input' => 'text',
  'required' => true,
  'default' => 0,
  'sort_order' => 202,
  'visible' => true,
  'system' => false,
  'validate_rules' => null,
  'position' => 202,
  'user_defined' => false,
  'frontend_class' => 'validate-number'
],
  1. Attempt to create a customer on front-end, or attempt to assign the value of 0 through the API.

Expected result (*)

  1. Customer attribute should be set with a 0 value.

Actual result (*)

  1. Both of these fail with [Attribute] is a required value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CustomerFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions