From d91b48a01b0020fb4ffab68a761e463abed77f50 Mon Sep 17 00:00:00 2001 From: drummer83 Date: Tue, 30 Jan 2024 22:48:09 +0100 Subject: [PATCH] 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 --- app/mailers/spree/order_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/spree/order_mailer.rb b/app/mailers/spree/order_mailer.rb index b63bc9d167..4fe60b1429 100644 --- a/app/mailers/spree/order_mailer.rb +++ b/app/mailers/spree/order_mailer.rb @@ -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)