Skip to content

Commit fb8ea46

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #14325: #7816: Customer_account.xml file abused (2.2) (by @mikewhitby) - #14299: [#14072 2.2] Add Zip Pattern for Japan JP (by @osrecio) - #14060: Disable add to cart button when redirect to cart enabled (by @ihor-sviziev) Fixed GitHub Issues: - #7816: Customer_account.xml file abused (reported by @LiamFielding) has been fixed in #14325 by @mikewhitby in 2.2-develop branch Related commits: 1. 56b3598 2. 09f8059 - #14072: Change zip code validation pattern for Japan (reported by @HirokazuNishi) has been fixed in #14299 by @osrecio in 2.2-develop branch Related commits: 1. 6b6ce0a 2. af6bbfd
2 parents 9b5f0db + 654b98d commit fb8ea46

File tree

6 files changed

+6
-21
lines changed

6 files changed

+6
-21
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,10 @@
4040
</div>
4141
</div>
4242
<?php endif; ?>
43-
<?php if ($block->isRedirectToCartEnabled()) : ?>
44-
<script type="text/x-magento-init">
45-
{
46-
"#product_addtocart_form": {
47-
"Magento_Catalog/product/view/validation": {
48-
"radioCheckboxClosest": ".nested"
49-
}
50-
}
51-
}
52-
</script>
53-
<?php else : ?>
5443
<script type="text/x-magento-init">
5544
{
5645
"#product_addtocart_form": {
5746
"Magento_Catalog/js/validate-product": {}
5847
}
5948
}
6049
</script>
61-
<?php endif; ?>

app/code/Magento/Customer/Controller/Account/Index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct(
3535
*/
3636
public function execute()
3737
{
38-
/** @var \Magento\Framework\View\Result\Page $resultPage */
39-
$resultPage = $this->resultPageFactory->create();
40-
$resultPage->getConfig()->getTitle()->set(__('My Account'));
41-
return $resultPage;
38+
return $this->resultPageFactory->create();
4239
}
4340
}

app/code/Magento/Customer/view/frontend/layout/customer_account.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom">
9+
<head>
10+
<title>My Account</title>
11+
</head>
912
<body>
1013
<attribute name="class" value="account"/>
1114
<referenceContainer name="sidebar.main">

app/code/Magento/Directory/etc/zip_codes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
<zip countryCode="JP">
208208
<codes>
209209
<code id="pattern_1" active="true" example="123-4567">^[0-9]{3}-[0-9]{4}$</code>
210-
<code id="pattern_2" active="true" example="123">^[0-9]{3}$</code>
210+
<code id="pattern_2" active="true" example="1234567">^[0-9]{7}$</code>
211211
</codes>
212212
</zip>
213213
<zip countryCode="JE">

app/code/Magento/Paypal/view/frontend/layout/customer_account.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9-
<head>
10-
<title>Billing Agreements</title>
11-
</head>
129
<body>
1310
<referenceBlock name="customer_account_navigation">
1411
<block class="Magento\Customer\Block\Account\SortLinkInterface" name="customer-account-navigation-billing-agreements-link">

dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function getPostcodesDataProvider()
133133
['countryId' => 'IL', 'postcode' => '12345'],
134134
['countryId' => 'IT', 'postcode' => '12345'],
135135
['countryId' => 'JP', 'postcode' => '123-4567'],
136-
['countryId' => 'JP', 'postcode' => '123'],
136+
['countryId' => 'JP', 'postcode' => '1234567'],
137137
['countryId' => 'JE', 'postcode' => 'TY8 9PL'],
138138
['countryId' => 'KZ', 'postcode' => '123456'],
139139
['countryId' => 'KE', 'postcode' => '12345'],

0 commit comments

Comments
 (0)