You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -923,39 +923,39 @@ define([
923
923
result=qty>0;
924
924
925
925
if(result===false){
926
-
validator.itemQtyErrorMessage=$.mage.__("Please enter a quantity greater than 0.");//eslint-disable-line max-len
926
+
validator.itemQtyErrorMessage=$.mage.__('Please enter a quantity greater than 0.');//eslint-disable-line max-len
927
927
928
-
returnresult;
928
+
returnresult;
929
929
}
930
930
931
931
result=isMinAllowedValid;
932
932
933
933
if(result===false){
934
-
validator.itemQtyErrorMessage=$.mage.__("The fewest you may purchase is %1.").replace('%1',params.minAllowed);//eslint-disable-line max-len
934
+
validator.itemQtyErrorMessage=$.mage.__('The fewest you may purchase is %1.').replace('%1',params.minAllowed);//eslint-disable-line max-len
935
935
936
-
returnresult;
936
+
returnresult;
937
937
}
938
938
939
939
result=isMaxAllowedValid;
940
940
941
941
if(result===false){
942
-
validator.itemQtyErrorMessage=$.mage.__("The maximum you may purchase is %1.").replace('%1',params.maxAllowed);//eslint-disable-line max-len
942
+
validator.itemQtyErrorMessage=$.mage.__('The maximum you may purchase is %1.').replace('%1',params.maxAllowed);//eslint-disable-line max-len
943
943
944
-
returnresult;
944
+
returnresult;
945
945
}
946
946
947
947
result=isQtyIncrementsValid;
948
948
949
949
if(result===false){
950
-
validator.itemQtyErrorMessage=$.mage.__("You can buy this product only in quantities of %1 at a time.").replace('%1',params.qtyIncrements);//eslint-disable-line max-len
950
+
validator.itemQtyErrorMessage=$.mage.__('You can buy this product only in quantities of %1 at a time.').replace('%1',params.qtyIncrements);//eslint-disable-line max-len
Copy file name to clipboardExpand all lines: lib/web/mage/validation.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1580,38 +1580,38 @@
1580
1580
result=qty>0;
1581
1581
1582
1582
if(result===false){
1583
-
validator.itemQtyErrorMessage=$.mage.__("Please enter a quantity greater than 0.");//eslint-disable-line max-len
1583
+
validator.itemQtyErrorMessage=$.mage.__('Please enter a quantity greater than 0.');//eslint-disable-line max-len
1584
1584
1585
-
returnresult;
1585
+
returnresult;
1586
1586
}
1587
1587
1588
1588
result=isMinAllowedValid;
1589
1589
1590
1590
if(result===false){
1591
-
validator.itemQtyErrorMessage=$.mage.__("The fewest you may purchase is %1.").replace('%1',params.minAllowed);//eslint-disable-line max-len
1591
+
validator.itemQtyErrorMessage=$.mage.__('The fewest you may purchase is %1.').replace('%1',params.minAllowed);//eslint-disable-line max-len
1592
1592
1593
-
returnresult;
1593
+
returnresult;
1594
1594
}
1595
1595
1596
1596
result=isMaxAllowedValid;
1597
1597
1598
1598
if(result===false){
1599
-
validator.itemQtyErrorMessage=$.mage.__("The maximum you may purchase is %1.").replace('%1',params.maxAllowed);//eslint-disable-line max-len
1599
+
validator.itemQtyErrorMessage=$.mage.__('The maximum you may purchase is %1.').replace('%1',params.maxAllowed);//eslint-disable-line max-len
1600
1600
1601
-
returnresult;
1601
+
returnresult;
1602
1602
}
1603
1603
1604
1604
result=isQtyIncrementsValid;
1605
1605
1606
1606
if(result===false){
1607
-
validator.itemQtyErrorMessage=$.mage.__("You can buy this product only in quantities of %1 at a time.").replace('%1',params.qtyIncrements);//eslint-disable-line max-len
1607
+
validator.itemQtyErrorMessage=$.mage.__('You can buy this product only in quantities of %1 at a time.').replace('%1',params.qtyIncrements);//eslint-disable-line max-len
0 commit comments