mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix AR-2179
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2007 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2008 Alfresco Software Limited.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@@ -104,7 +104,7 @@ public class RepositoryLocation
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the queru language
|
||||
* Set the query language
|
||||
*
|
||||
* @param path the search language
|
||||
*/
|
||||
@@ -159,7 +159,7 @@ public class RepositoryLocation
|
||||
{
|
||||
String result = "+TYPE:\"" + contentModelType.toString() + "\"";
|
||||
|
||||
if (this.path != null)
|
||||
if ((this.path != null) && (! this.path.equals("")))
|
||||
{
|
||||
result += " +PATH:\"" + this.path + "\"";
|
||||
}
|
||||
@@ -176,7 +176,7 @@ public class RepositoryLocation
|
||||
{
|
||||
String result = "/*[subtypeOf('" + prefixResolvedContentModelType.toPrefixString() + "')]"; // immediate children only
|
||||
|
||||
if (this.path != null)
|
||||
if ((this.path != null) && (! this.path.equals("")))
|
||||
{
|
||||
result = this.path + result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user