Skip to content

Commit 96f01c5

Browse files
author
Oleksii Korshenko
committed
MAGETWO-66222: [GitHub][PR] Include Reply-To name in contact form email header #8903
1 parent da416f3 commit 96f01c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Contact/Model/Mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function __construct(
5050
public function send($replyTo, array $variables)
5151
{
5252
/** @see \Magento\Contact\Controller\Index\Post::validatedParams() */
53-
$replyToName = !empty($variables['name']) ? $variables['name'] : null;
54-
53+
$replyToName = !empty($variables['data']['name']) ? $variables['data']['name'] : null;
54+
5555
$this->inlineTranslation->suspend();
5656
try {
5757
$transport = $this->transportBuilder

0 commit comments

Comments
 (0)