When deleting an order with uc_order_delete(), It looks like the uc_order module does not call field_attach_delete() to delete any additional field values the order might have already.
I will attach a patch suggestion shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | deleting_an_order_does-2625346-2.patch | 922 bytes | ayesh |
Comments
Comment #2
ayesh commentedAttaching a patch. It simply calls field_attach_delete on the order that is already loaded. I would be really grateful if you could review when you have some time.
Thanks.
Comment #4
longwaveYes, this makes perfect sense. We call all the other field_attach_* functions, except for this one.
Committed, with a fix to the indentation. Thanks for the patch!
This change is not needed in 8.x-4.x as the entity storage base class already takes care of deleting fields.
Comment #5
ayesh commentedGreat. Thanks a lot Dave :)