summaryrefslogtreecommitdiff
path: root/www/drupal7/files/patch-modules-taxonomy-taxonomy.module
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-25 09:42:17 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-25 09:42:17 +0000
commit58b9590d8954da1b310c41c442ee0771d9b84c59 (patch)
tree77a782f0e72bbd43aae18d6e6a5583eb99f68f08 /www/drupal7/files/patch-modules-taxonomy-taxonomy.module
parent- Add drupal5 support (diff)
- Update to 5.1
PR: ports/110413 Submitted by: Nick Hilliard <nick at foobar.org> (maintainer)
Notes
Notes: svn path=/head/; revision=188256
Diffstat (limited to 'www/drupal7/files/patch-modules-taxonomy-taxonomy.module')
-rw-r--r--www/drupal7/files/patch-modules-taxonomy-taxonomy.module11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/drupal7/files/patch-modules-taxonomy-taxonomy.module b/www/drupal7/files/patch-modules-taxonomy-taxonomy.module
new file mode 100644
index 000000000000..eda2eb9da1b7
--- /dev/null
+++ b/www/drupal7/files/patch-modules-taxonomy-taxonomy.module
@@ -0,0 +1,11 @@
+--- modules/taxonomy/taxonomy.module~ Sat Mar 17 00:26:28 2007
++++ modules/taxonomy/taxonomy.module Sat Mar 17 00:26:28 2007
+@@ -619,7 +619,7 @@
+ 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) >= 1)) {
+ $options[$vocabulary->name] = array();
+ foreach ($tree as $term) {
+ $options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;