Skip to content

Commit

Permalink
Price import - Fixed error message in email
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobTolkemit committed Apr 1, 2020
1 parent 6e13b92 commit aab8420
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Handler/ByExampleImportErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/app/mailer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<tr>
<td>{{ productCode }}</td>
<td>{{ violation.propertyPath }}</td>
<td>{{ error.message|trans }}</td>
<td>{{ violation.message|trans }}</td>
<td>{{ violation.cause }}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit aab8420

Please sign in to comment.