mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Fix incorrect laguage of order confirmation email for shop
The mail was sent in the customer's language, but it should be sent in the shop owner's language
This commit is contained in:
@@ -49,7 +49,7 @@ module Spree
|
||||
|
||||
def confirm_email_for_shop(order_or_order_id)
|
||||
@order = find_order(order_or_order_id)
|
||||
I18n.with_locale valid_locale(@order.user) do
|
||||
I18n.with_locale valid_locale(@order.distributor.owner) do
|
||||
subject = t('.subject',
|
||||
number: @order.number,
|
||||
distributor: @order.distributor.name)
|
||||
|
||||
Reference in New Issue
Block a user