-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Fixed missing layout parameter when choosing widget page group #3563
Conversation
… incorrect fix in 0eda1e5)
@ma4nn I can't seem to replicate the issue or I didn't understand it correctly ![]() it seems to me that the layout parameter is always passed |
@fballiano thanks for your feedback. As mentioned in the ticket description for "Display On = Specified Page" the |
select#layout_handle doesn't even exist in the DOM, interesting, I'm trying to think of why nobody noticed before but this PR seems to work fine. |
What about this mini-bugfix? Is any other reviewer able to verify and approve? |
@addison74 @kiatng @Flyingmana I think this one should be approved, I've tested it and it works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the testing steps outlined: after creating a widget, and select it for editing, and set Display On to All Product Types, the dropdown options for Block References increases as shown by the screenshots captured by @fballiano:
Description (*)
This PR fixes the issue that the layout parameter is missing in some cases when choosing the page group on the widget instance page in backend.
As a result not all available block references will be shown in the select field.
This has already been tried to fix in #802, but the implementation does only work when choosing "Specified Page" in the page group select. For all other options like category or product pages (where no additional "Page" select is available) only the
default
layout handle will be used (instead of e.g.catalog_product_view
) and therewith not all available blocks will be shown in "Block Reference".Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)