magento / magento2-page-builder

Magento2 PageBuilder
Other
79 stars 59 forks source link

Text Editor does not show on edit page when attribute Catalog Input Type for Store Owner is changed to Text Editor. #789

Closed cdbessig closed 4 months ago

cdbessig commented 2 years ago

Preconditions (*)

  1. Magento 2.4.3 / php 7.4
  2. Page Builder 2.2.1

Steps to reproduce (*)

  1. Add a category attribute with the attribute code "short_description" to your magento install.
  2. Stores->attributes->products, edit short_description to be "text editor" on the "Catalog Input Type for Store Owner"

Expected result (*)

  1. The expected result is that when you go to catalog->products and edit a product, that the short description would show a tinymce editor.

Actual result (*)

  1. It does not show a tinymce editor.

It seems that the issue is the somewhere page builder is assuming the attribute_code, "short description" is unique. But attribute code is not unique, the key on the database is (attribute_code, entitiy_type_id) - meaning it is possible to have the same attribute code for products and then for categories.

For anyone having issues like this, the current work around is to rename the attribute code for the category from "short_description" to "short_description_category"

However, this is a bug, because the system should work with the expected result.

m2-assistant[bot] commented 2 years ago

Hi @cdbessig. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


engcom-Bravo commented 4 months ago

Hi @cdbessig,

Thanks for your reporting and collaboration.

We have verified the issue and the issue is no more reproducible.

Screenshot 2024-05-10 at 2 47 58 PM

Hence we are closing this issue.

Thanks.