Skip to content

Encoding of ampersands in attribute set group name #32962

Open
@Footshop-Andy

Description

@Footshop-Andy

When creating a new group of attributes within an attribute set, including an ampersand in the name of the group displays correctly within the "Attribute Set" area of the admin. When viewing a product within the admin, this displays encoded as &

Manually changing the name of the group from & to & will fix the problem; but the next time the attribute set is saved, the problem is re-introduced.

Screenshots from Magento 2.4-develop instance:

  1. Creation of group, which looks fine:
    image

  2. This group displays as:
    image

  3. Renaming the group fixes the issue:
    image

  4. But it breaks again if you save the attribute set, even when only editing attributes in other groups:
    image

Preconditions (*)

  1. Magneto 2.4.2

Steps to reproduce (*)

  1. Create a new group with an ampersand in the name (verify it displays as &)
  2. Rename the group name (double click it) & to & (verify it now displays correctly)
  3. Save the attribute set again, without editing the group, and it breaks again (it displays as &)

Expected result (*)

  1. The attribute set group name can be created using &
  2. The attribute set group name will not be modified when the set is being edited

Actual result (*)

  1. The attribute set group name changes from & to &

Metadata

Metadata

Assignees

Labels

Area: CatalogComponent: AttributesIssue: 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: PR 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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions