Skip to content

Commit cb9e034

Browse files
committed
ACP2E-420: Price in a Scheduled Update divided by 1000 depending on the Locale
1 parent 5d3043e commit cb9e034

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateSimpleProductTest/AdminCreateSimpleProductCommaSeparatedPriceTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</actionGroup>
3131
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSave"/>
3232
<actionGroup ref="AssertAdminValidationErrorAppearedForPriceFieldOnProductEditPageActionGroup" stepKey="seePriceValidationError">
33-
<argument name="errorMessage" value="Please enter a number 0 or greater in this field."/>
33+
<argument name="errorMessage" value="Please enter a number 0 or greater, without comma in this field."/>
3434
</actionGroup>
3535
</test>
3636
</tests>

app/code/Magento/Ui/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,5 @@ CSV,CSV
194194
"Please enter a value between {0} and {1}.","Please enter a value between {0} and {1}."
195195
"was not uploaded","was not uploaded"
196196
"The file upload field is disabled.","The file upload field is disabled."
197+
"Please enter a number 0 or greater, without comma in this field.","Please enter a number 0 or greater, without comma in this field."
198+
"Please enter a number greater than 0, without comma in this field.","Please enter a number greater than 0, without comma in this field."

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,22 +609,22 @@ define([
609609
&& value >= 0 && (/^\s*-?\d+([,.]\d+)*\s*%?\s*$/).test(value);
610610

611611
},
612-
$.mage.__('Please enter a number 0 or greater in this field.')
612+
$.mage.__('Please enter a number 0 or greater, without comma in this field.')
613613
],
614614
// validate-not-negative-number should be replaced in all places with this one and then removed
615615
'validate-zero-or-greater': [
616616
function (value) {
617617
return utils.isEmptyNoTrim(value) || !isNaN(utils.parseNumber(value))
618618
&& value >= 0 && (/^\s*-?\d+([,.]\d+)*\s*%?\s*$/).test(value);
619619
},
620-
$.mage.__('Please enter a number 0 or greater in this field.')
620+
$.mage.__('Please enter a number 0 or greater, without comma in this field.')
621621
],
622622
'validate-greater-than-zero': [
623623
function (value) {
624624
return utils.isEmptyNoTrim(value) || !isNaN(utils.parseNumber(value))
625625
&& value > 0 && (/^\s*-?\d+([,.]\d+)*\s*%?\s*$/).test(value);
626626
},
627-
$.mage.__('Please enter a number greater than 0 in this field.')
627+
$.mage.__('Please enter a number greater than 0, without comma in this field.')
628628
],
629629
'validate-css-length': [
630630
function (value) {

0 commit comments

Comments
 (0)