My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 111 attachment: update_quantity_of_already_created_order_line_items.patch (755 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb (revision 106)
+++ /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb (working copy)
@@ -464,7 +464,10 @@
end
end

- @order.order_line_items = @items
+ @order.order_line_items.clear
+ @items.each do |line_item|
+ @order.order_line_items << OrderLineItem.new(line_item.attributes)
+ end
@order.save
add_tax()
# Save the order id to the session so we can find it later

Powered by Google Project Hosting