Skip to content

Commit cbcf369

Browse files
committed
MC-33148: A link to resend a confirmation email is not clickable
MC-33203: Corrupted compare products page when switch store view
1 parent e344d30 commit cbcf369

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/code/Magento/Catalog/Helper/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function productAttribute($product, $attributeHtml, $attributeName)
182182
if ($attributeHtml !== null
183183
&& $attribute->getIsHtmlAllowedOnFront()
184184
&& $attribute->getIsWysiwygEnabled()
185-
&& $this->isDirectivesExists($attributeHtml)
185+
&& $this->isDirectivesExists((string)$attributeHtml)
186186
) {
187187
$attributeHtml = $this->_getTemplateProcessor()->filter($attributeHtml);
188188
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function execute()
168168
$metadata->setPath('/');
169169
$this->getCookieManager()->deleteCookie('mage-cache-sessid', $metadata);
170170
}
171-
$this->messageManager->addSuccessMessage($this->getSuccessMessage());
171+
$this->messageManager->addSuccess($this->getSuccessMessage());
172172
$resultRedirect->setUrl($this->getSuccessRedirect());
173173
return $resultRedirect;
174174
} catch (StateException $e) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function execute()
218218
);
219219
} finally {
220220
if (isset($message)) {
221-
$this->messageManager->addErrorMessage($message);
221+
$this->messageManager->addError($message);
222222
$this->session->setUsername($login['username']);
223223
}
224224
}

app/code/Magento/Customer/Test/Unit/Controller/Account/ConfirmTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function testSuccessMessage($customerId, $key, $vatValidationEnabled, $ad
282282
->willReturnSelf();
283283

284284
$this->messageManagerMock->expects($this->any())
285-
->method('addSuccessMessage')
285+
->method('addSuccess')
286286
->with($this->stringContains($successMessage))
287287
->willReturnSelf();
288288

@@ -402,7 +402,7 @@ public function testSuccessRedirect(
402402
->willReturnSelf();
403403

404404
$this->messageManagerMock->expects($this->any())
405-
->method('addSuccessMessage')
405+
->method('addSuccess')
406406
->with($this->stringContains($successMessage))
407407
->willReturnSelf();
408408

app/code/Magento/Customer/Test/Unit/Controller/Account/LoginPostTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ protected function mockExceptions($exception, $username)
557557
$url
558558
);
559559
$this->messageManager->expects($this->once())
560-
->method('addErrorMessage')
560+
->method('addError')
561561
->with($message)
562562
->willReturnSelf();
563563

0 commit comments

Comments
 (0)