From ace8095e21ee300b65d3e8c142f5bc28139e6876 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 2 Jan 2008 15:39:14 +0000 Subject: [PATCH] Fix to not show spaces derived from app:projectfolder in the Advanced Space Wizard git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7745 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/web/bean/spaces/CreateSpaceWizard.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/web/bean/spaces/CreateSpaceWizard.java b/source/java/org/alfresco/web/bean/spaces/CreateSpaceWizard.java index 8087b21fea..ea7c73a7ee 100644 --- a/source/java/org/alfresco/web/bean/spaces/CreateSpaceWizard.java +++ b/source/java/org/alfresco/web/bean/spaces/CreateSpaceWizard.java @@ -490,12 +490,13 @@ public class CreateSpaceWizard extends BaseWizardBean NodeRef rootNodeRef = this.nodeService.getRootNode(Repository.getStoreRef()); List results = this.searchService.selectNodes(rootNodeRef, xpath, null, this.namespaceService, false); - if (results.size() > 0) + if (results.size() != 0) { for (NodeRef assocRef : results) { Node childNode = new Node(assocRef); - if (this.dictionaryService.isSubClass(childNode.getType(), ContentModel.TYPE_FOLDER)) + if (this.dictionaryService.isSubClass(childNode.getType(), ContentModel.TYPE_FOLDER) && + !this.dictionaryService.isSubClass(childNode.getType(), ApplicationModel.TYPE_PROJECTSPACE)) { this.templates.add(new SelectItem(childNode.getId(), childNode.getName())); }