Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java =================================================================== diff -u -rbe6aeaa61647f690cc832be9174f30036ebe8e0e -rb5d42eff472154edcc323444fb26d318a398481c --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java (.../ForumService.java) (revision be6aeaa61647f690cc832be9174f30036ebe8e0e) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java (.../ForumService.java) (revision b5d42eff472154edcc323444fb26d318a398481c) @@ -549,13 +549,19 @@ Forum toContent = Forum.newInstance(fromContent,toContentId,forumToolContentHandler); forumDao.saveOrUpdate(toContent); - //save topics in this forum + //save topics in this forum, only save the author created topic!!! and reset its reply number to zero. Set topics = toContent.getMessages(); if(topics != null){ Iterator iter = topics.iterator(); while(iter.hasNext()){ Message msg = (Message) iter.next(); //set this message forum Uid as toContent + if(!msg.getIsAuthored()) + continue; + msg.setReplyNumber(0); + msg.setCreated(new Date()); + msg.setLastReplyDate(new Date()); + msg.setHideFlag(false); msg.setForum(toContent); createRootTopic(toContent.getUid(),null,msg); }