When editing a term using IEF, and you have title module enabled, the code in TaxonomyTermInlineEntityFormController::entityFormSubmit copies the format and description values from the processed entity into different places in the processed entity.

This is contrary to core, which gets the values from $form_state and puts them into the entity before saving, in taxonomy_form_term_submit_build_taxonomy_term.

Basically, if you have title module and you use IEF on an entity reference field that references terms, then when editing you'll replace the description with the first character of the description, whoops!

Comments

Steven Jones created an issue. See original summary.

steven jones’s picture

Status: Active » Needs review
StatusFileSize
new837 bytes

Here's a patch that just fetches the values from form_state.

chris matthews’s picture

Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

The 3 year old patch in #2 to taxonomy_term.inline_entity_form.inc applied cleanly to the latest inline_entity_form 7.x-1.x-dev and fixes this issue for me.

  • ram4nd committed 15fb332 on 7.x-1.x
    Issue #2581159 by Steven Jones: Not compatible with title module when...
ram4nd’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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