diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-06 05:44:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-06 05:44:07 +0000 |
commit | 1bb6e13d7893704d5cf73ef3d8447bf9695a83be (patch) | |
tree | 16d5455ec71c8861d4bd8821e1d428c98bcd65fb /modules/taxonomy/taxonomy.admin.inc | |
parent | fcb8df3c7768b3da2b434e6310fc529b7cd79e4b (diff) | |
download | brdo-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.inc | 3 |
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; |