Skip to content

Commit

Permalink
Change OrdersController#populate to sync with spree/spree#4334
Browse files Browse the repository at this point in the history
Fixes jsqu99#96
  • Loading branch information
kianw authored and radar committed Mar 3, 2014
1 parent 2de9573 commit eb64955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spree/orders_controller_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit eb64955

Please sign in to comment.