Skip to content

Commit 6aad823

Browse files
Add validation greater than zero
1 parent dfdb152 commit 6aad823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sitemap/etc/adminhtml/system.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@
8383
<label>Sitemap File Limits</label>
8484
<field id="max_lines" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
8585
<label>Maximum No of URLs Per File</label>
86-
<validate>validate-number</validate>
86+
<validate>validate-number validate-greater-than-zero</validate>
8787
</field>
8888
<field id="max_file_size" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
8989
<label>Maximum File Size</label>
9090
<comment>File size in bytes.</comment>
91-
<validate>validate-number</validate>
91+
<validate>validate-number validate-greater-than-zero</validate>
9292
</field>
9393
</group>
9494
<group id="search_engines" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">

0 commit comments

Comments
 (0)