Needs work
Project:
Field Collection Table
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2012 at 00:19 UTC
Updated:
7 Dec 2012 at 00:19 UTC
I've created a ctools multistep form with a final step that previews an entity before it is saved, using entity_build_content($entity->type, $entity, 'token', 'und'); but I get warnings and notices from function field_collection_table_entity_view().
The issue is that $entity->instanceInfo() and $entity->hostEntity() are both NULL.
I don't know a great solution, but the attached patch bypasses the rest of the function if the field collection has not yet been saved, which is adequate for me.
| Comment | File | Size | Author |
|---|---|---|---|
| field_collection_table-entity_preview_remove_warnings.patch | 561 bytes | mstrelan |