From 931f43f2ba9fa748ad9fa6b5a9bba7d89f17497d Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Thu, 21 Sep 2006 15:31:24 +0000 Subject: #41484 by myself. Fix singleton term selection. --- modules/taxonomy/taxonomy.module | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index b64447a4c..3a2cd52b4 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -679,14 +679,10 @@ function taxonomy_form_alter($form_id, &$form) { '#title' => t('Categories'), '#collapsible' => TRUE, '#collapsed' => FALSE, - '#tree' => TRUE, - '#weight' => -3, ); } - else { - $form['taxonomy'] = array_shift($form['taxonomy']); - $form['taxonomy']['#weight'] = -3; - } + $form['taxonomy']['#weight'] = -3; + $form['taxonomy']['#tree'] = TRUE; } } } -- cgit v1.2.3