-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple HTML attributes not editable on Categories #38843
Comments
Hi @adamlavery. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
@magento give me 2.4-develop instance |
Hi @adamlavery. Thank you for your request. I'm working on Magento instance for you. |
Hi @adamlavery, here is your Magento Instance: https://12a2515e68f0a3e05523ef31d44dfa90.instances-prod.magento-community.engineering |
How do we get SSH access to this to be able to add a test module? |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @engcom-Delta. Thank you for working on this issue.
|
+1 to this issue. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @adamlavery, Thanks for the report and collaboration! We have tried to reproduce the issue by upgrading the Magento from 2.4.3 to 2.4.7-p1 (The latest released version). But it seems the issue is not reproducible for us. After upgrading we can see the saved value from the previous version i.e. 2.4.3. Please refer to the below screenshot for reference: We are also attaching the module we have created to reproduce the issue: Let us know in case we missed anything. Thanks |
@engcom-Hotel this really doesn't demonstrate the issue. Try moving your custom attribute into Content and display after the core Description field (i.e. sortOrder 51+). As per this test, your custom attribute is the first HTML field on the page and that works. I suspect if you open Content you'll find you can't change Description. But do as we have done to exactly reproduce our scenario. |
Hello @adamlavery, Thanks for the response. As per your response, we have made the required changes in the module and have moved the custom category attribute to Display Settings. However, we still cannot reproduce the issue. We followed the entire upgrade process from 2.4.3 to 2.4.7-p1. Please refer to the screenshot below for reference: Let us know if we have missed anything. Thanks |
Hi @engcom-Hotel , ok so this time you have put it in the Display Settings section. Put it in the Content section, below Description as per the screenshots. |
Hello @adamlavery, @skovalenk,
I apologize but we are trying our best in this issue reproduction. We have tried again and now the custom field is in the Content section below the description field. Please refer to the screenshot below for reference: But the issue is not reproducible for us. Just so you know, we are attaching the module as well, please let us know if we missed anything. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-12434 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
I have the feeling this might have already been fixed in 2.4-develop with #38623, but I might be wrong. @engcom-Hotel: did you only test it while upgrading Magento to 2.4.7, or did you then also test it by further upgrading to the latest |
I can confirm that this commit fixes the issue: 1933e66 |
Okay perfect, then I guess we can close this issue, the fix is probably scheduled to be delivered in Magento 2.4.8 |
Hello @hostep, We have tried it in both 2.4-develop (the latest development branch) and via upgrading. The issue is not reproducible in 2.4-develop but it is reproducible in upgrading from 2.4.3 to 2.4.7-p1 (the latest released version). So as per my suggestion, the issue should remain open, for upgrading scenario. Thanks |
@engcom-Hotel: ticket can be closed in my opinion, it's a bug in the code that has introduced the problem, not the upgrade process itself. The reason why it's not reproducible in 2.4-develop is because the fix was already introduced in 2.4-develop on 28 May 2024 @adamlavery: I assume this fix will get included in Magento 2.4.8 and not in one of the security patch releases. I don't think Adobe considers it as highly critical. Just patch your codebase to fix the bug if you need it urgently, using one of the well known composer patch libraries (https://github.com/vaimo/composer-patches or https://github.com/cweagans/composer-patches/ or ...). |
Sure @hostep. We are closing the issue. Thanks |
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.
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.
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
The text was updated successfully, but these errors were encountered: