#481510 by sandfurz: assign thread_id in privatemsg_reply
authorOleg Terenchuk
Fri, 5 Jun 2009 20:10:36 +0000 (20:10 +0000)
committerOleg Terenchuk
Fri, 5 Jun 2009 20:10:36 +0000 (20:10 +0000)
privatemsg.module

index 351ddc2..0e32792 100644 (file)
@@ -1213,6 +1213,7 @@ function privatemsg_reply($thread_id, $body = NULL, $options = array()) {
     return array(t('Thread %thread_id not found, unable to answer', array('%thread_id' => $thread_id)));
   }
 
+  $message['thread_id'] = $thread_id;
 
   $query = _privatemsg_assemble_query('participants', $thread_id);
   $participants = db_query($query['query']);