Skip to content

Commit ed277dc

Browse files
ENGCOM-8524: Fix #30724 - Customer Account Edit controller action enforces Page Title to 'Account Information' #31157
- Merge Pull Request #31157 from Bartlomiejsz/magento2:bugfix/30724_customer_account_edit_title - Merged commits: 1. 92e9422
2 parents 661c15c + 92e9422 commit ed277dc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Customer\Controller\Account;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
108
use Magento\Customer\Api\CustomerRepositoryInterface;
11-
use Magento\Framework\Api\DataObjectHelper;
129
use Magento\Customer\Model\Session;
13-
use Magento\Framework\View\Result\PageFactory;
10+
use Magento\Framework\Api\DataObjectHelper;
1411
use Magento\Framework\App\Action\Context;
12+
use Magento\Framework\App\Action\HttpGetActionInterface;
13+
use Magento\Framework\View\Result\PageFactory;
1514

1615
class Edit extends \Magento\Customer\Controller\AbstractAccount implements HttpGetActionInterface
1716
{
@@ -81,10 +80,10 @@ public function execute()
8180
\Magento\Customer\Api\Data\CustomerInterface::class
8281
);
8382
}
83+
8484
$this->session->setCustomerData($customerDataObject);
8585
$this->session->setChangePassword($this->getRequest()->getParam('changepass') == 1);
8686

87-
$resultPage->getConfig()->getTitle()->set(__('Account Information'));
8887
return $resultPage;
8988
}
9089
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<update handle="customer_account"/>
10+
<head>
11+
<title>Account Information</title>
12+
</head>
1013
<body>
1114
<referenceBlock name="head.components">
1215
<block class="Magento\Framework\View\Element\Js\Components" name="customer_account_edit_head_components" template="Magento_Customer::js/components.phtml"/>

0 commit comments

Comments
 (0)