From ccf9e913135e25c41e3749d99c1f398f44566260 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 8 Sep 2021 15:11:59 +0200 Subject: [PATCH] expo form: email fixed --- web/modules/custom/materio_expo/materio_expo.module | 2 +- web/modules/custom/materio_expo/src/Form/GetEmail.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/modules/custom/materio_expo/materio_expo.module b/web/modules/custom/materio_expo/materio_expo.module index e0fbad64..f7dc51d4 100644 --- a/web/modules/custom/materio_expo/materio_expo.module +++ b/web/modules/custom/materio_expo/materio_expo.module @@ -30,7 +30,7 @@ function materio_expo_mail($key, &$message, $params) { switch ($key) { case 'expo_getmail_submitted': $message['from'] = \Drupal::config('system.site')->get('mail'); - $message['subject'] = t('[EXPO] mail submitted: @mail', array('@mail' => $params['mail'])); + $message['subject'] = t('[EXPO] mail submitted: @mail', array('@mail' => $params['email'])); $message['body'][] = $params['message']; break; } diff --git a/web/modules/custom/materio_expo/src/Form/GetEmail.php b/web/modules/custom/materio_expo/src/Form/GetEmail.php index e2694c2c..b4cc99a9 100644 --- a/web/modules/custom/materio_expo/src/Form/GetEmail.php +++ b/web/modules/custom/materio_expo/src/Form/GetEmail.php @@ -73,8 +73,8 @@ class GetEmail extends FormBase { $module = 'materio_expo'; $key = 'expo_getmail_submitted'; $to = \Drupal::config('system.site')->get('mail'); - $params['mail'] = $values['mail']; - $params['message'] = $values['mail']; + $params['email'] = $values['email']; + $params['message'] = $values['email']; $langcode = \Drupal::languageManager()->getCurrentLanguage()->getId(); $send = true;