Skip to content

Custom select attribute code "container" breaks javascript on update attributes #21232

Open
@cralls

Description

Preconditions (*)

  1. Magneto 2.2.3
  2. PHP 7.0.33

Steps to reproduce (*)

  1. Create a custom select attribute with a code of "container"
  2. Go to the Catalog->Products and check the box next to at least one product.
  3. Click the Action dropdown and select "Update Attributes"
  4. Scroll down until you see your container attribute and you will see that it is not disabled

Expected result (*)

  1. The attribute should be disabled by default until you check the Change box

Actual result (*)

  1. The container attribute is enabled and if you check the Change checkbox on/off nothing happens
    image

Workaround (*)

Edit eav_attribute table and change the attribute code from "container" to something else. The problem happens because there is already a css id "container" on the page and this breaks the javascript function to enable/disable your custom attribute with the same name "container"

Metadata

Assignees

Labels

Area: ProductComponent: CatalogComponent: EavIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: dev in progressReported on 2.4.xIndicates 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

  • Status

    Dev In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions