magento-lts
magento-lts copied to clipboard
Widget instance layout updates doesn't store correctly for longer product types
Preconditions (*)
catalog_product_entity.type_idtable column is 32 characterswidget_instance_page.page_grouptable column is 25 characters
Steps to reproduce (*)
- Create a new Widget Instance with a Layout Update for a Specific Product Type, The Type has more than 16 characters
- Save the Page and Try to reload it.
- Because the
page_groupis created by$typeId . '_products', it can't save the entire name it should have into it.
Expected result (*)
- [Screenshots, logs or description]
- The Layout Update is correctly restored after save and load
Actual result (*)
- [Screenshots, logs or description]
- The Layout Update can't be correctly loaded, because the loaded Page Group Name is invalid
See this JS error:
Uncaught TypeError: pageGroup is null
addPageGroup https://myWebshop/index.php/admin/widget_instance/edit/instance_id/3/type/cms-widget_block/package/default/theme/default/key//back/edit/:1307
<anonymous> https://myWebshop/index.php/admin/widget_instance/edit/instance_id/3/type/cms-widget_block/package/default/theme/default/key//back/edit/:1533