mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user