summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-06 12:20:24 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-06 12:20:24 +0000
commit32d9af49169f47cbaad8940b284153dffb664afe (patch)
treea0fd34979af42ed7e9c5c0eecb824ae337b5dca9 /modules/forum
parente90a178e5d60dd5907d724c0f3cbe51b3e49ddb9 (diff)
downloadbrdo-32d9af49169f47cbaad8940b284153dffb664afe.tar.gz
brdo-32d9af49169f47cbaad8940b284153dffb664afe.tar.bz2
- Patch #39598 by Gerhard: fixed problem with taxonomy terms not being selected.
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.module7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 2790f5be7..7e36b4087 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -592,12 +592,9 @@ function forum_form(&$node) {
$node->taxonomy[] = arg(3);
}
else {
- $node->taxonomy = array($node->tid);
- }
-
- if ($node->nid) {
+ $forum_terms = taxonomy_node_get_terms_by_vocabulary(_forum_get_vid(), $node->nid);
// if editing, give option to leave shadows
- $shadow = (count(taxonomy_node_get_terms($node->nid)) > 1);
+ $shadow = (count($forum_terms) > 1);
$form['shadow'] = array('#type' => 'checkbox', '#title' => t('Leave shadow copy'), '#default_value' => $shadow, '#description' => t('If you move this topic, you can leave a link in the old forum to the new forum.'));
}