Fixed issue where discussions were lost after checkin & updated version number

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2230 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-01-27 15:43:49 +00:00
parent 280fabbe05
commit a967ade5b8
2 changed files with 9 additions and 12 deletions

View File

@@ -694,18 +694,16 @@ public class ForumsBean implements IContextListener
ForumModel.ASSOC_DISCUSSION, RegexQNamePattern.MATCH_ALL);
// there should only be one child, retrieve it if there is
if (children.size() == 1)
if (children.size() != 1)
{
// show the forum for the discussion
NodeRef forumNodeRef = children.get(0).getChildRef();
this.browseBean.clickSpace(forumNodeRef);
context.getApplication().getNavigationHandler().handleNavigation(context, null, "showForum");
}
else if (logger.isWarnEnabled())
{
logger.warn("Node has the discussable aspect but does not have 1 child, it has " +
children.size() + " children!");
throw new IllegalStateException("Node has the discussable aspect but does not have 1 child, it has " +
children.size() + " children!");
}
// show the forum for the discussion
NodeRef forumNodeRef = children.get(0).getChildRef();
this.browseBean.clickSpace(forumNodeRef);
context.getApplication().getNavigationHandler().handleNavigation(context, null, "showForum");
}
/**