Skip to content

Commit 7bb0d62

Browse files
authored
fix: error in defining validation classes for config fields
1 parent 44996fe commit 7bb0d62

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

etc/adminhtml/system.xml

+3-5
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
</field>
3535
<field id="grid_per_page" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
3636
<label>Products per Page on Grid Default Value</label>
37-
<validate>validate-number</validate>
38-
<validate>validate-per-page-value</validate>
37+
<validate>validate-number validate-per-page-value</validate>
3938
</field>
4039
<field id="list_per_page_values" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
4140
<label>Products per Page on List Allowed Values</label>
@@ -44,8 +43,7 @@
4443
</field>
4544
<field id="list_per_page" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
4645
<label>Products per Page on List Default Value</label>
47-
<validate>validate-number</validate>
48-
<validate>validate-per-page-value</validate>
46+
<validate>validate-number validate-per-page-value</validate>
4947
</field>
5048
<field id="list_allow_all" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
5149
<label>Allow All Products per Page</label>
@@ -65,4 +63,4 @@
6563
</group>
6664
</section>
6765
</system>
68-
</config>
66+
</config>

0 commit comments

Comments
 (0)