-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add number validation for sitemap file limits #24358
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
Add number validation for sitemap file limits #24358
Conversation
Hi @ravi-chandra3197. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @VladimirZaets, thank you for the review.
|
Hi @ravi-chandra3197, we can still use negative numbers. (-10 for ex.) This is incorrect validation. Could you take a look, please? Thanks! |
@@ -83,10 +83,12 @@ | |||
<label>Sitemap File Limits</label> | |||
<field id="max_lines" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1"> | |||
<label>Maximum No of URLs Per File</label> | |||
<validate>validate-number</validate> |
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.
There is another validation class "validate-greater-than-zero", that should fix the problem with values below or equal to zero.
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 added validation for greater than zero
Hello @engcom-Alfa |
Hi @sidolov, thank you for the review.
|
✔️ QA Passed |
Hi @ravi-chandra3197, thank you for your contribution! |
Description (*)
Add number validation for sitemap file limits
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)