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
This commit is contained in:
Kevin Roast
2008-01-02 15:39:14 +00:00
parent e52c3e262b
commit ace8095e21

View File

@@ -490,12 +490,13 @@ public class CreateSpaceWizard extends BaseWizardBean
NodeRef rootNodeRef = this.nodeService.getRootNode(Repository.getStoreRef()); NodeRef rootNodeRef = this.nodeService.getRootNode(Repository.getStoreRef());
List<NodeRef> results = this.searchService.selectNodes(rootNodeRef, xpath, null, this.namespaceService, false); List<NodeRef> results = this.searchService.selectNodes(rootNodeRef, xpath, null, this.namespaceService, false);
if (results.size() > 0) if (results.size() != 0)
{ {
for (NodeRef assocRef : results) for (NodeRef assocRef : results)
{ {
Node childNode = new Node(assocRef); 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())); this.templates.add(new SelectItem(childNode.getId(), childNode.getName()));
} }