Skip to content

Mandatory fields in admin for Magento_Company do not match the fields on my account page #38360

Open
@jeroenalewijns

Description

Preconditions (*)

  1. PHP8.2
  2. Maria DB 10.6
  3. Magento Commerce (cloud) 2.4.6-p3

Steps to reproduce (*)

  1. Login in the admin and create a company
  2. Create for the company in step 1 a customer user
  3. Login as company on frontend http://www.xxx.nl/customer/account/login/
  4. Change created user details by clicking on the edit button
  5. Now the job title and phone number are required

Expected result (*)

  1. I expect that the job title and phone number aren't required because these aren't required in the admin section. Now you have to add these to change the details of the customer user.

Actual result (*)

  1. The job title and phone number are required.

I think that in the file vendor/magento/module-company/view/frontend/templates/company/management/dialog/customer/add.phtml ln26 and ln60 the data-validate="{required:true}" must be removed.

Metadata

Assignees

No one assigned

    Labels

    Adobe CommerceThe issue related to the Adobe Commerce(EE) or B2B functionalityArea: AccountComponent: UserIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions