Download & Extend

Undefined index "format" in title_field_text_with_summary_sync_set()

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

Status:active» needs review

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.

AttachmentSizeStatusTest resultOperations
title-undefined-index-format-title_field_text_with_summary_sync_set-18508661.patch905 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 257 pass(es).View details

#2

Status:needs review» fixed

Committed and pushed, thanks!

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here