File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Customer/view/frontend/templates/address
Ui/view/base/web/js/lib/validation Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 75
75
value="<?php echo $ block ->escapeHtml ($ block ->getStreetLine (1 )) ?> "
76
76
title="<?php /* @escapeNotVerified */ echo __ ('Street Address ' ) ?> "
77
77
id="street_1"
78
- class="input-text <?php /* @escapeNotVerified */
79
- echo $ _streetValidationClass ?> "/>
78
+ class="input-text <?php /* @escapeNotVerified */ echo $ _streetValidationClass ?> "/>
80
79
<div class="nested">
81
80
<?php $ _streetValidationClass = trim (str_replace ('required-entry ' , '' , $ _streetValidationClass )); ?>
82
81
<?php for ($ _i = 1 , $ _n = $ this ->helper ('Magento\Customer\Helper\Address ' )->getStreetLines (); $ _i < $ _n ; $ _i ++): ?>
88
87
<input type="text" name="street[]"
89
88
value="<?php echo $ block ->escapeHtml ($ block ->getStreetLine ($ _i + 1 )) ?> "
90
89
title="<?php /* @escapeNotVerified */ echo __ ('Street Address %1 ' , $ _i + 1 ) ?> "
91
- id="street_<?php /* @escapeNotVerified */ echo $ _i + 1 ?> " echo $_streetValidationClass ?>">
90
+ id="street_<?php /* @escapeNotVerified */ echo $ _i + 1 ?> "
91
+ class="input-text <?php /* @escapeNotVerified */ echo $ _streetValidationClass ?> ">
92
92
</div>
93
93
</div>
94
94
<?php endfor ; ?>
Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ define([
49
49
return _ . mapObject ( {
50
50
"min_text_length" : [
51
51
function ( value , params ) {
52
- return value . length == 0 || value . length >= + params ;
52
+ return _ . isUndefined ( value ) || value . length == 0 || value . length >= + params ;
53
53
} ,
54
54
$ . mage . __ ( 'Please enter more or equal than {0} symbols.' )
55
55
] ,
56
56
"max_text_length" : [
57
57
function ( value , params ) {
58
- return value . length <= + params ;
58
+ return ! _ . isUndefined ( value ) && value . length <= + params ;
59
59
} ,
60
60
$ . mage . __ ( 'Please enter less or equal than {0} symbols.' )
61
61
] ,
You can’t perform that action at this time.
0 commit comments