Skip to content

Commit

Permalink
ENGCOM-8524: Fix #30724 - Customer Account Edit controller action enf…
Browse files Browse the repository at this point in the history
…orces Page Title to 'Account Information' #31157

 - Merge Pull Request #31157 from Bartlomiejsz/magento2:bugfix/30724_customer_account_edit_title
 - Merged commits:
   1. 92e9422
  • Loading branch information
magento-engcom-team committed Dec 22, 2020
2 parents 661c15c + 92e9422 commit ed277dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/code/Magento/Customer/Controller/Account/Edit.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Customer\Controller\Account;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Framework\Api\DataObjectHelper;
use Magento\Customer\Model\Session;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\Api\DataObjectHelper;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\View\Result\PageFactory;

class Edit extends \Magento\Customer\Controller\AbstractAccount implements HttpGetActionInterface
{
Expand Down Expand Up @@ -81,10 +80,10 @@ public function execute()
\Magento\Customer\Api\Data\CustomerInterface::class
);
}

$this->session->setCustomerData($customerDataObject);
$this->session->setChangePassword($this->getRequest()->getParam('changepass') == 1);

$resultPage->getConfig()->getTitle()->set(__('Account Information'));
return $resultPage;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="customer_account"/>
<head>
<title>Account Information</title>
</head>
<body>
<referenceBlock name="head.components">
<block class="Magento\Framework\View\Element\Js\Components" name="customer_account_edit_head_components" template="Magento_Customer::js/components.phtml"/>
Expand Down

0 comments on commit ed277dc

Please sign in to comment.