Needs work
Project:
e-Commerce role purchasing support
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 03:20 UTC
Updated:
19 May 2010 at 09:47 UTC
Role adjustments were not applied when products were purchased. I found that the node passed to "ec_roles_process_purchase" had not been fully populated. In particular, "ec_roles_load" had not been called to add the "buy_add" and "buy_del" arrays.
I added a call to "ec_roles_load" within "ec_roles_process_purchase", which works. However, I don't know if this is a proper fix. If the ecommerce framework is supposed to be passing fully populated nodes to hook_feature_txn_workflow, then the actual bug may lie therein.
Patch attached. It is mostly comment, I only added one line of actual code.
| Comment | File | Size | Author |
|---|---|---|---|
| ec_roles_load.patch | 1.65 KB | bpirkle |
Comments
Comment #1
jax commentedThe patch is reversed. The new lines should start with a + instead of a -. No need to put that much info in the .module file itself. The description can be inserted in this thread.