hook_views_data bug: table stripped from field in query for uc_orders fields; breaks node queries if fieldname ambiguous
Posted June 8th, 2009 by pete
The table gets stripped from fields in the views query for oc_orders fields; this breaks node queries where the included oc_orders fields have the same name as a field in another table (e.g. created)
To reproduce error:
- create a node view, add a page display, and set the path
- add any node field (node title for example)
- add the Ubercart Order: Order Creation Date
Save and view the new view.
The problem is due to some errors in how uc_orders is joined with the node table in hook_views_data()
See attached fix.
Pete Stein