diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php index 09cd392..4dd80cd 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php @@ -67,7 +67,7 @@ public function form(array $form, array &$form_state, EntityInterface $term) { // A term can't be the child of itself, nor of its children. foreach ($children as $child) { - $exclude[] = $child->id(); + $exclude[] = $child->tid; } $exclude[] = $term->id(); diff --git a/core/modules/taxonomy/taxonomy.pages.inc b/core/modules/taxonomy/taxonomy.pages.inc index db12e91..72c1fb1 100644 --- a/core/modules/taxonomy/taxonomy.pages.inc +++ b/core/modules/taxonomy/taxonomy.pages.inc @@ -25,7 +25,7 @@ function taxonomy_term_page(Term $term) { $current = $term; while ($parents = taxonomy_term_load_parents($current->id())) { $current = array_shift($parents); - $breadcrumb[] = l($term->label(), 'taxonomy/term/' . $current->id()); + $breadcrumb[] = l($current->label(), 'taxonomy/term/' . $current->id()); } $breadcrumb[] = l(t('Home'), NULL); $breadcrumb = array_reverse($breadcrumb);