-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions and environment
CE 2.4.7
Needs a custom category text attribute to be added that uses the WYSIWYG editor. See the web for example of how to do that.
This arose after upgrading from 2.4.3 to 2.4.7. Upgrade went through 2.4.4, 2.4.5 & 2.4.6 so no idea what version this bug appeared in.
Steps to reproduce
-
Add a custom text category attribute e.g. https://developer.adobe.com/commerce/frontend-core/ui-components/howto/add-category-attribute/
-
Add to the category edit page as wysiwyg i.e.
<field name="custom_description" template="ui/form/field" sortOrder="100" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="height" xsi:type="string">100px</item>
<item name="add_variables" xsi:type="boolean">false</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<label translate="true">Below Description</label>
<dataScope>custom_description</dataScope>
</settings>
<formElements>
<wysiwyg class="Magento\Catalog\Ui\Component\Category\Form\Element\Wysiwyg">
<settings>
<rows>8</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
-
Try to edit the field on the category - it won't save. Note in our case our custom fields already have values that display on the frontend but do not show on the backend. Changes do not save,
-
Change the sort order of the field to 49 and try again., This time you can edit and save the custom attribute but not the normal Description field.
-
Change the sort order back to 100 and make the field a basic textarea field e.g.
<field name="custom_description" sortOrder="100" formElement="textarea">
<settings>
<dataType>string</dataType>
<label translate="true">My Text Attribute</label>
</settings>
</field>
Now you can edit and save the field as text.
Expected result
We are able to edit all HTML fields on the category page.,
Actual result
We can only edit the first HTML field that appears on the category page.
Additional information
Custom attribute editor empty:
Move custom attribute before core description, now description empty:
Make custom attribute a standard textarea and works ok:
Release note
Fix bug introduced in 2.4.? that prevents editing of additional custom HTML attributes on categories.
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
Labels
Type
Projects
Status