diff --git a/include/class.topic.php b/include/class.topic.php
index 6b8f814e1c3115b8dea6056f7912c43437fdddba..557daf533311caf66da3d51b269bb04c7dd2e1d3 100644
--- a/include/class.topic.php
+++ b/include/class.topic.php
@@ -287,6 +287,7 @@ implements TemplateVariable {
         $topic = self::create($vars);
         if (!isset($vars['dept_id']))
             $vars['dept_id'] = 0;
+        $vars['id'] = $vars['topic_id'];
         $topic->update($vars, $errors);
         return $topic;
     }