From aab8420dc67b6321fc1b573abc424702c3423d54 Mon Sep 17 00:00:00 2001 From: Jakob Tolkemit Date: Wed, 1 Apr 2020 11:47:21 +0200 Subject: [PATCH] Price import - Fixed error message in email --- src/Handler/ByExampleImportErrorHandler.php | 2 +- src/Resources/config/app/mailer.yml | 4 ++-- ...le_import.html.twig => failed_price_form_import.html.twig} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Resources/views/Email/{failed_price_by_example_import.html.twig => failed_price_form_import.html.twig} (96%) diff --git a/src/Handler/ByExampleImportErrorHandler.php b/src/Handler/ByExampleImportErrorHandler.php index d600a646..a4aa113e 100644 --- a/src/Handler/ByExampleImportErrorHandler.php +++ b/src/Handler/ByExampleImportErrorHandler.php @@ -37,7 +37,7 @@ public function handleErrors(array $errors, array $extraData): void $email = $user->getEmail(); $this->sender->send( - 'brille24_failed_price_by_example_import', + 'brille24_failed_price_form_import', [$email], ['failed' => $errors, 'extraData' => $extraData] ); diff --git a/src/Resources/config/app/mailer.yml b/src/Resources/config/app/mailer.yml index 90d8f659..25434d11 100644 --- a/src/Resources/config/app/mailer.yml +++ b/src/Resources/config/app/mailer.yml @@ -3,6 +3,6 @@ sylius_mailer: brille24_failed_csv_price_import: subject: 'brille24.email.customer_option_price_import_failed' template: "@Brille24SyliusCustomerOptionsPlugin/Email/failed_csv_price_import.html.twig" - brille24_failed_price_by_example_import: + brille24_failed_price_form_import: subject: 'brille24.email.customer_option_price_import_failed' - template: "@Brille24SyliusCustomerOptionsPlugin/Email/failed_price_by_example_import.html.twig" + template: "@Brille24SyliusCustomerOptionsPlugin/Email/failed_price_form_import.html.twig" diff --git a/src/Resources/views/Email/failed_price_by_example_import.html.twig b/src/Resources/views/Email/failed_price_form_import.html.twig similarity index 96% rename from src/Resources/views/Email/failed_price_by_example_import.html.twig rename to src/Resources/views/Email/failed_price_form_import.html.twig index dc9da5af..326387c0 100644 --- a/src/Resources/views/Email/failed_price_by_example_import.html.twig +++ b/src/Resources/views/Email/failed_price_form_import.html.twig @@ -57,7 +57,7 @@ {{ productCode }} {{ violation.propertyPath }} - {{ error.message|trans }} + {{ violation.message|trans }} {{ violation.cause }} {% endfor %}