From 8798b886db7d4a6a92e533d26272bd0d59710e5a Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Mon, 21 Aug 2017 11:17:54 +0200 Subject: [PATCH] Fix mailing of order_result (PR #493) --- app/views/mailer/order_result.text.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/mailer/order_result.text.haml b/app/views/mailer/order_result.text.haml index e14eee89..3931842b 100644 --- a/app/views/mailer/order_result.text.haml +++ b/app/views/mailer/order_result.text.haml @@ -1,5 +1,5 @@ = raw t '.text0', ordergroup: @group_order.ordergroup_name, order: @order.name, when: I18n.l(@order.ends), user: show_user(@order.updated_by) -- for group_order_article in @group_order.group_order_articles.ordered.all(:include => :order_article) +- for group_order_article in @group_order.group_order_articles.ordered.includes(:order_article) - article = group_order_article.order_article.article \- #{article.name}: #{group_order_article.result} x #{article.unit} = #{group_order_article.result * article.fc_price} = raw t '.text1', sum: @group_order.price, order_url: group_order_url(@group_order), foodcoop: FoodsoftConfig[:name]