summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-06 05:44:07 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-06 05:44:07 +0000
commit1bb6e13d7893704d5cf73ef3d8447bf9695a83be (patch)
tree16d5455ec71c8861d4bd8821e1d428c98bcd65fb /modules/taxonomy/taxonomy.admin.inc
parentfcb8df3c7768b3da2b434e6310fc529b7cd79e4b (diff)
downloadbrdo-1bb6e13d7893704d5cf73ef3d8447bf9695a83be.tar.gz
brdo-1bb6e13d7893704d5cf73ef3d8447bf9695a83be.tar.bz2
- Patch #762604 by andypost: taxonomy terms list broken, term add/edit forgets it's parent.
Diffstat (limited to 'modules/taxonomy/taxonomy.admin.inc')
-rw-r--r--modules/taxonomy/taxonomy.admin.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc
index 7e6b43268..8579f7442 100644
--- a/modules/taxonomy/taxonomy.admin.inc
+++ b/modules/taxonomy/taxonomy.admin.inc
@@ -686,6 +686,9 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
$tree = taxonomy_get_tree($vocabulary->vid);
$options = array('<' . t('root') . '>');
+ if (empty($parent)) {
+ $parent = array(0);
+ }
foreach ($tree as $term) {
if (!in_array($term->tid, $exclude)) {
$options[$term->tid] = str_repeat('-', $term->depth) . $term->name;