mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
70754: Modifications to files after merge from WAT1 to HBF so that the two branches are the same except for version.properties and pom.xml versions These changes need to be checked as they may have been incorrectly merged to WAT1 in the first place. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@70982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -575,6 +575,11 @@ function splitQNamePath(node, rootNodeDisplayPath, rootNodeQNamePath, qnameOnly)
|
||||
}
|
||||
}
|
||||
|
||||
if (overriden && parts == null)
|
||||
{
|
||||
displayPath.unshift("");
|
||||
}
|
||||
|
||||
return (parts !== null ? parts : [ null, null, displayPath ]);
|
||||
}
|
||||
|
||||
@@ -945,7 +950,16 @@ function getSearchResults(params)
|
||||
}
|
||||
else
|
||||
{
|
||||
formQuery += (first ? '' : ' AND ') + escapeQName(propName) + ':\\"' + propValue + '\\"';
|
||||
var index = propValue.lastIndexOf(" ");
|
||||
formQuery += (first ? '' : ' AND ') + escapeQName(propName)
|
||||
if (index > 0 && index < propValue.length - 1)
|
||||
{
|
||||
formQuery += ':(' + propValue + ')';
|
||||
}
|
||||
else
|
||||
{
|
||||
formQuery += ':"' + propValue + '"';
|
||||
}
|
||||
}
|
||||
first = false;
|
||||
}
|
||||
@@ -1015,7 +1029,7 @@ function getSearchResults(params)
|
||||
}
|
||||
}
|
||||
|
||||
// ensure a TYPE is specified - if not, then add one to remove system objects etc. from result sets
|
||||
// ensure a TYPE is specified - if no add one to remove system objects from result sets
|
||||
if (ftsQuery.indexOf("TYPE:\"") === -1 && ftsQuery.indexOf("TYPE:'") === -1)
|
||||
{
|
||||
ftsQuery += ' AND (+TYPE:"cm:content" OR +TYPE:"cm:folder")';
|
||||
|
Reference in New Issue
Block a user