mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -88,18 +88,27 @@ ParseArgs.getParsedArgs = function RecordsManagementFilter_getParsedArgs(contain
|
|||||||
|
|
||||||
if (args.filter == "unfiledRecords")
|
if (args.filter == "unfiledRecords")
|
||||||
{
|
{
|
||||||
var unfiledRecordContainer = rootNode.childrenByXPath("rma:Unfiled_x0020_Records");
|
var container = rootNode.childrenByXPath("rma:Unfiled_x0020_Records");
|
||||||
pathNode = unfiledRecordContainer.length > 0 ? unfiledRecordContainer[0] : rootNode;
|
if (container.length > 0)
|
||||||
|
{
|
||||||
|
pathNode = container[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (args.filter == "holds")
|
else if (args.filter == "holds")
|
||||||
{
|
{
|
||||||
var container = rootNode.childrenByXPath("rma: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")
|
else if (args.filter == "transfers")
|
||||||
{
|
{
|
||||||
var container = rootNode.childrenByXPath("rma:Transfers");
|
var container = rootNode.childrenByXPath("rma:Transfers");
|
||||||
pathNode = container.length > 0 ? container[0] : rootNode;
|
if (container.length > 0)
|
||||||
|
{
|
||||||
|
pathNode = container[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user