Posted by B-Prod on November 26, 2012 at 4:05pm
3 followers
| Project: | Title |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When saving programmatically an entity that does not have a "format" property for "body" or "description" field, the title_field_text_with_summary_sync_set() function throws a PHP notice.
To reproduce such bug, just create a dummy term in a vocabulary that have the "description" field replaced by a standard field. The term should only have a name and the related category keys (vid and vocabulary_machine_name) and may have a description set to NULL for example.
When saving programmatically the term, the bug occurs.
You may use for dummy creation the entity_create() function from Entity API module.
Comments
#1
For info, the described bug is quite similar than the one in #1219860: Undefined index "format", that occurs in another function.
The patch below fixes that.
#2
Committed and pushed, thanks!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.