Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java,v diff -u -r1.126.2.22 -r1.126.2.23 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 13 Dec 2016 14:33:25 -0000 1.126.2.22 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 22 Dec 2016 10:49:09 -0000 1.126.2.23 @@ -842,7 +842,18 @@ } Forum toContent = Forum.newInstance(fromContent, toContentId); - + + // remove session Messages from topics + for (ForumCondition condition : toContent.getConditions()) { + Iterator conditionMessageIter = condition.getTopics().iterator(); + while (conditionMessageIter.hasNext()) { + Message conditionMessage = conditionMessageIter.next(); + if (conditionMessage.getToolSession() != null) { + conditionMessageIter.remove(); + } + } + } + // 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) {