Project:
UbercartCategory:
bug reportVersion:
Ubercart 1.0 RCPriority:
normalAssigned:
UnassignedStatus:
activeI discovered a bug when trying to create an order for an existing user. I added a file download product to their order, pressed submit change, the page refreshes without the added products.
For another example of what also happened, I tried to update an existing order by adding an extra file download product via Products: add product button on the edit order page, after submitting the change it refreshed and removed all the products in the order!
I'm using UC 1.0rc4

Re: Create product disappears after submitting change
Hmm... I can't reproduce this... On the Livetest, I just created a new order for myself, added the cha0s Jams mp3 download file and hit submit changes... no problems. Are you trying to submit changes while it's in the middle of loading something else?
Re: Re: Create product disappears after submitting change
Thanks Ryan to take the time to check this. I have reaffirmed that this bug only exists with my current install by creating a fresh install of drupal + ubercart and successfully adding an order.
It seems this bug has been with my current site for awhile since my database backups dont fix the bug. I have attached an image of the logs, as you can see the last log in the list displays a complete removal of all the added products during the submit change. Is there away to find out more of why its doing this?
I removed db_query("DELETE
I removed
db_query("DELETE FROM {uc_order_products} WHERE order_id = %d", $order->order_id);from line 2529 in uc_order.module and this seems to do the trick.
I'm not sure why this removes my products.. All I can think of is the products have several attributes, maybe thats why?
Re: I removed db_query("DELETE
Not sure, Tom... I know we wanted to review how the products were being saved and change it, particularly when we get to working on 2.0. I've got a comment in the code, so we'll be sure to get back to it.