From eb64955b1844ccfa9f70d47c9a90f427217e90e7 Mon Sep 17 00:00:00 2001 From: Kian Wright Date: Thu, 13 Feb 2014 12:01:23 -0800 Subject: [PATCH] Change OrdersController#populate to sync with spree/spree#4334 Fixes #96 --- app/controllers/spree/orders_controller_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/orders_controller_decorator.rb b/app/controllers/spree/orders_controller_decorator.rb index ee053a8..a33c200 100644 --- a/app/controllers/spree/orders_controller_decorator.rb +++ b/app/controllers/spree/orders_controller_decorator.rb @@ -11,7 +11,7 @@ module Spree # # Adds a new item to the order (creating a new order if none already exists) def populate - populator = Spree::OrderPopulator.new(current_order(true), current_currency) + populator = Spree::OrderPopulator.new(current_order(create_order_if_necessary: true), current_currency) flexi_hash = {ad_hoc_option_value_ids: ad_hoc_option_value_ids, product_customizations: product_customizations} if populator.populate(params.slice(:products, :variants, :quantity).merge(flexi_hash))