? modules/nodeaccess.1
? modules/nodeaccess.module
Index: modules/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum.module,v
retrieving revision 1.243
diff -u -F^f -r1.243 forum.module
--- modules/forum.module	1 Apr 2005 15:54:59 -0000	1.243
+++ modules/forum.module	8 Apr 2005 07:34:43 -0000
@@ -193,6 +193,14 @@ function forum_form_forum($edit = array(
 function _forum_parent_select($tid, $title, $name) {
 
   $parents = taxonomy_get_parents($tid);
+  if ($parents) {
+    $parent = array_shift($parents);
+    $parent = $parent->tid;
+  }
+  else {
+    $parent = 0;
+  }
+
   $children = taxonomy_get_tree(_forum_get_vid, $tid);
 
   // A term can't be the child of itself, nor of its children.
@@ -211,11 +219,7 @@ function _forum_parent_select($tid, $tit
     }
   }
 
-  if (!$parents) {
-    $parents = 0;
-  }
-
-  return form_select($title, $name, $parents, $options, NULL, 0, FALSE, TRUE);
+  return form_select($title, $name, $parent, $options, NULL, 0, FALSE, TRUE);
 }
 
 /**
