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