-
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
Unable to insert widget with text value which contains }} string #29006
Unable to insert widget with text value which contains }} string #29006
Conversation
Hi @engcom-Kilo. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
@magento run Static Tests |
@magento run Static Tests |
@magento run all tests |
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.
Hi @engcom-Kilo, thanks for the pull request, it looks good! Please follow a small comments on it. Also, can we cover it with MFTF tests?
Thanks!
@magento run all tests |
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.
Hi @engcom-Charlie, thanks for the updates here, it looks good! Pleases follow some small comments below, also, can you cover this PR with tests?
Thanks!
@@ -131,7 +143,7 @@ public function getWidgetByClassType($type) | |||
*/ | |||
public function getConfigAsXml($type) | |||
{ | |||
return $this->getXmlElementByType($type); | |||
return $this->getWidgetByClassType($type); |
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.
This seems BIC, changing the return type from null|\Magento\Framework\Simplexml\Element
to null|array
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.
@gabrieldagama I changed getXmlElementByType
to getWidgetByClassType
because such i found in obsolete_methods
.
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.
If the getWidgetByClassType
is really a substitute for getXmlElementByType
let's create a new method and deprecate the old one.
@magento run all tests |
2233234
to
01b7906
Compare
@magento run all tests |
Hi @gabrieldagama, thank you for the review.
|
Hi @engcom-Kilo, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)