- Patch #107822 by riccardoR: Content filtering ignores vocabularies with only one term.
parent
cd8690fb85
commit
fcc5c27b9e
|
@ -662,7 +662,7 @@ function taxonomy_form_all($free_tags = 0) {
|
|||
foreach ($vocabularies as $vid => $vocabulary) {
|
||||
if ($vocabulary->tags && !$free_tags) { continue; }
|
||||
$tree = taxonomy_get_tree($vid);
|
||||
if ($tree && (count($tree) > 1)) {
|
||||
if ($tree && (count($tree) > 0)) {
|
||||
$options[$vocabulary->name] = array();
|
||||
foreach ($tree as $term) {
|
||||
$options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;
|
||||
|
|
Loading…
Reference in New Issue