Skip to content

Commit 2ea7010

Browse files
committed
ACP2E-197: JS validation error doesn't work for the 2nd line of the street attribute
1 parent 92c9b3e commit 2ea7010

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Customer/view/frontend/templates/address/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $regionProvider = $block->getRegionProvider();
8080
<span><?= $escaper->escapeHtml(__('Street Address: Line %1', $_i + 1)) ?></span>
8181
</label>
8282
<div class="control">
83-
<input type="text" name="street[<?= $_i ?>]"
83+
<input type="text" name="street[<?= /* @noEscape */ $_i ?>]"
8484
value="<?= $escaper->escapeHtmlAttr($block->getStreetLine($_i + 1)) ?>"
8585
title="<?= $escaper->escapeHtmlAttr(__('Street Address %1', $_i + 1)) ?>"
8686
id="street_<?= /* @noEscape */ $_i + 1 ?>"

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ $formData = $block->getFormData();
121121
</label>
122122
<div class="control">
123123
<input type="text"
124-
name="street[<?= $_i ?>]"
124+
name="street[<?= /* @noEscape */ $_i ?>]"
125125
value="<?= $escaper->escapeHtml($formData->getStreetLine($_i - 1)) ?>"
126126
title="<?= $escaper->escapeHtmlAttr(__('Street Address %1', $_i)) ?>"
127127
id="street_<?= /* @noEscape */ $_i ?>"

0 commit comments

Comments
 (0)