From 5d34b711e91687a1e84de6166e7b898654bc6d71 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 26 Aug 2015 15:01:20 +1000 Subject: [PATCH] Handling undefined customer tags --- lib/open_food_network/orders_and_fulfillments_report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_food_network/orders_and_fulfillments_report.rb b/lib/open_food_network/orders_and_fulfillments_report.rb index 77573d1ff2..03c4ec801a 100644 --- a/lib/open_food_network/orders_and_fulfillments_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report.rb @@ -222,7 +222,7 @@ module OpenFoodNetwork proc { |line_items| line_items.first.order.order_cycle.andand.name }, proc { |line_items| line_items.first.order.payments.first.andand.payment_method.andand.name }, proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).andand.code }, - proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).tags.join(', ') }, + proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).andand.tags.andand.join(', ') }, proc { |line_items| line_items.first.order.bill_address.andand.address1 }, proc { |line_items| line_items.first.order.bill_address.andand.address2 },