Fixed small icon display issue in details view

Fixed unreported error with topic deletion

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-02-08 22:21:16 +00:00
parent 63a39037d3
commit 8ae8d98571
3 changed files with 43 additions and 2 deletions

View File

@@ -800,6 +800,21 @@ public class ForumsBean implements IContextListener
*/
public String deleteTopicOK()
{
String outcomeOverride = "browse";
// find out what the parent type of the node being deleted
Node node = this.browseBean.getActionSpace();
ChildAssociationRef assoc = this.nodeService.getPrimaryParent(node.getNodeRef());
if (assoc != null)
{
NodeRef parent = assoc.getParentRef();
QName parentType = this.nodeService.getType(parent);
if (parentType.equals(ForumModel.TYPE_FORUM))
{
outcomeOverride = "topicDeleted";
}
}
// call the generic handler
String outcome = this.browseBean.deleteSpaceOK();
@@ -807,7 +822,7 @@ public class ForumsBean implements IContextListener
if (outcome != null)
{
outcome = AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME +
AlfrescoNavigationHandler.DIALOG_SEPARATOR + "topicDeleted";
AlfrescoNavigationHandler.DIALOG_SEPARATOR + outcomeOverride;
}
return outcome;