RM-1539 (File Plan root categories are displayed in Active Holds for user with no permissions to Hold container)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73866 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-06-15 20:32:21 +00:00
parent 725d3e9b9d
commit acd4fe1e7b

View File

@@ -88,18 +88,27 @@ ParseArgs.getParsedArgs = function RecordsManagementFilter_getParsedArgs(contain
if (args.filter == "unfiledRecords")
{
var unfiledRecordContainer = rootNode.childrenByXPath("rma:Unfiled_x0020_Records");
pathNode = unfiledRecordContainer.length > 0 ? unfiledRecordContainer[0] : rootNode;
var container = rootNode.childrenByXPath("rma:Unfiled_x0020_Records");
if (container.length > 0)
{
pathNode = container[0];
}
}
else if (args.filter == "holds")
{
var container = rootNode.childrenByXPath("rma:Holds");
pathNode = container.length > 0 ? container[0] : rootNode;
if (container.length > 0)
{
pathNode = container[0];
}
}
else if (args.filter == "transfers")
{
var container = rootNode.childrenByXPath("rma:Transfers");
pathNode = container.length > 0 ? container[0] : rootNode;
if (container.length > 0)
{
pathNode = container[0];
}
}
else
{