-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed issue regarding widget form validation #23499
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
Conversation
Hi @yash7690. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-cicd2 , This commit shows me error of sematic version failure and asks me to update minor version of module. But the confusion is, the widget module does not have version in either composer.json or module.xml, so how can i solve this error ? |
@magento-engcom-team Please let me know solution for my query. |
* @param \Magento\Framework\DataObject $parameter | ||
* @return string | ||
*/ | ||
protected function getCssClasses($parameter) |
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.
Please, make method private and SVC build failures will be resolved
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.
I have made the changes suggested by you, but still it shows build failed. This time, it is showing that array_merge is being used in a forloop, which is right but actually it is not my change, default extension is having the same code. Can you please advice here what can be done ?
Hi @VladimirZaets, thank you for the review.
|
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 @yash7690 . We have some problems with checkout to your branch. Could you update it?
Pull Request state was updated. Re-review required.
@magento run all tests |
Hello @yash7690, Thanks for your contributions! Please resolve the conflict so we can proceed with this PR. Thanks! |
Closing this PR since it has not been updated in a while. Please feel free to reopen if needed. |
Description (*)
-> Have added attribute to provide additional_classes in xml file, so that field in widget can have validation classes like integer, positive-integer, validate-zero-or-greater etc
-> Have created a new validation rule for "Not negative integer" validation
Fixed Issues (if relevant)
Widget form was not having any validation apart from required. Have added additional_classes attribute to field so that any class/validation can apply.
Manual testing scenarios (*)
Contribution checklist (*)