Commit 15fb332a authored by Steven Jones's avatar Steven Jones Committed by Ra Mänd
Browse files

Issue #2581159 by Steven Jones: Not compatible with title module when embedding terms

parent e0015cdb
Loading
Loading
Loading
Loading
+4 −2
Changes for includes/taxonomy_term.inline_entity_form.inc: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -106,9 +106,11 @@ class TaxonomyTermInlineEntityFormController extends EntityInlineEntityFormContr
      $entity->vid = $vocabularies[$entity->vocabulary_machine_name]->vid;
    }

    $entity_values = drupal_array_get_nested_value($form_state['values'], $entity_form['#parents']);

    // Separate the description and format.
    $entity->format = $entity->description['format'];
    $entity->description = $entity->description['value'];
    $entity->format = $entity_values['description']['format'];
    $entity->description = $entity_values['description']['value'];
  }

  /**