Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2009 at 00:36 UTC
Updated:
8 Feb 2011 at 16:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
kalgalath commentedComment #2
tr commentedBumping this one up so I remember to test it.
Comment #3
omniverse commentedI was having the same problem. You can test it by using attributes. Put two of the same product in the cart with different attribute values. Check the remove box when viewing the cart and update the cart. Sometimes the wrong item will be removed depending on the order that they were added since the SELECT query in uc_cart_remove_item is only looking at the nid value of the item (but the DELETE query matches on the data column as well).
Patch fixes it.
Although, big picture, it would probably be best to match on the cart item id instead of nid + cid + data.
Comment #4
longwaveFixed in #1047698: uc_cart_remove_item can tell the api its deleting one item and delete a different item