Skip to content

switcherConfig stops working in admin customer address edit modal #39553

Open
@xtremevision

Description

@xtremevision

switcherconfig_test_module.zip

Preconditions and environment

  • Magento open source version 2.4.4 and 2.4.6
  • nginx
  • elasticsearch
  • MariaDB 10.4.25
  • php 8.1
  • A customer record with an address
  • Install attached module to reproduce issue

Steps to reproduce

  1. Install attached module
  2. Login to admin backend
  3. Edit a customer
  4. Edit the customer's address
  5. Click field1 once or twice to see the hide/show effect (rules)
  6. Close the modal
  7. Edit the address again
  8. Click field1 once or twice - hide/show rules no longer work (nor on page load either)

See attached recording.

Veronica.Costello._.Customers._.Customers._.Magento.Admin.webm

Expected result

The switcherConfig should work every time the modal is opened to add or edit an address.

Actual result

switcherConfig stop working after the modal is first closed. Subsequent openings no longer execute the switcherConfig rules.
There are no JS console or system/exception log errors that I can see.

Additional information

It has happens in the customer address form for both add or edit addresses.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Admin UIComponent: CustomerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedReported on 2.4.6Indicates 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