Closed (fixed)
Project:
Commerce Coupon (D7)
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 01:27 UTC
Updated:
17 Feb 2012 at 11:30 UTC
Got this error which was killing the site.
The entity module states
/**
* Defines schema fields required for exportable entities.
*
* Warning: Do not call this function in your module's hook_schema()
* implementation or update functions. It is not safe to call functions of
* dependencies at this point. Instead of calling the function, just copy over
* the content.
* For more details see the issue http://drupal.org/node/1122812.
*/
function entity_exportable_schema_fields($module_col = 'module', $status_col = 'status') {}
The attached patch follows the code comment advice and moves this function into commerce_coupon.install fixing the error.
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_coupon-fix-entity-schema-error.install.patch | 1.56 KB | davidwhthomas |
Comments
Comment #1
pcambraGood catch, let's commit it.
Thanks!
Comment #2.0
(not verified) commentedSimplify