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 %}