From 1c4b5b9f44ade9ee155fc5293376210c607c0b7b Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 8 Aug 2010 19:21:25 +0000
Subject: [PATCH] - Patch #850690 by salvis: set the tid of the newly created
 forum or container.

---
 modules/forum/forum.admin.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/forum/forum.admin.inc b/modules/forum/forum.admin.inc
index 9b696ade96b5..02f1940b26dc 100644
--- a/modules/forum/forum.admin.inc
+++ b/modules/forum/forum.admin.inc
@@ -89,6 +89,7 @@ function forum_form_submit($form, &$form_state) {
         $containers[] = $term->tid;
         variable_set('forum_containers', $containers);
       }
+      $form_state['values']['tid'] = $term->tid;
       drupal_set_message(t('Created new @type %term.', array('%term' => $form_state['values']['name'], '@type' => $type)));
       break;
     case SAVED_UPDATED:
-- 
GitLab