-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email notification for quote fails due to "Language is not set" exception #1821
Comments
are you on 2.x or 3.x? |
On 2.x. BTW, also the "recipient" is required for the mail action... |
For me also reproducable in 3.x |
PR #1868 fixes it for 2.2 |
PR for 2.2 is merged |
PR for 3.x as well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having an notification rule for type "quote" with an action "Email" throws an exception "MailActionProcessor: Language is not set" in:
CoreShop/src/CoreShop/Component/Notification/Rule/Action/MailActionProcessor.php
Lines 37 to 39 in 6fcbd95
Stack trace shows that the parameter "_locale" would have to be set in QuoteListener:
CoreShop/src/CoreShop/Bundle/CoreBundle/EventListener/NotificationRules/QuoteListener.php
Line 27 in 6fcbd95
Something like:
...as it is is done in OrderWorkflowListener:
CoreShop/src/CoreShop/Bundle/CoreBundle/EventListener/NotificationRules/OrderWorkflowListener.php
Lines 37 to 47 in 6fcbd95
Steps to reproduce:
The text was updated successfully, but these errors were encountered: