Skip to content

Commit e52e6e9

Browse files
committed
ACPT-677: Catalog product grid improvement
- Add validation to Records Limit;
1 parent 8760352 commit e52e6e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@
490490
</field>
491491
<field id="records_limit" translate="label comment" type="text" sortOrder="2" showInDefault="1" canRestore="1">
492492
<label>Records Limit</label>
493-
<validate>validate-greater-than-zero validate-number</validate>
494-
<comment>Limit total number of products in grid collection if their number is greater than this value.</comment>
493+
<validate>validate-digits validate-digits-range digits-range-20000-</validate>
494+
<comment>Limit total number of products in grid collection if their number is greater than this value. Minimum value: 20000.</comment>
495495
<depends>
496496
<field id="limit_total_number_of_products">1</field>
497497
</depends>

0 commit comments

Comments
 (0)