mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ALF-2462 - Duplicate data list item does not handle aspect properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,7 +54,11 @@ function runAction(p_params)
|
||||
var propertiesToSkip =
|
||||
{
|
||||
"cm:name": true,
|
||||
"cm:content": true
|
||||
"cm:content": true,
|
||||
"cm:created": true,
|
||||
"cm:creator": true,
|
||||
"cm:modified": true,
|
||||
"cm:modifier": true
|
||||
};
|
||||
|
||||
for (index in items)
|
||||
@@ -73,14 +77,14 @@ function runAction(p_params)
|
||||
if (itemNode !== null)
|
||||
{
|
||||
var duplicateProperties = new Array(),
|
||||
propNames = itemNode.getTypePropertyNames(true),
|
||||
propNames = itemNode.getPropertyNames(true),
|
||||
propName;
|
||||
|
||||
// Copy selected properties from the original node
|
||||
for (var i = 0, ii = propNames.length; i < ii; i++)
|
||||
{
|
||||
propName = propNames[i];
|
||||
if (propName in propertiesToSkip)
|
||||
if (propName in propertiesToSkip || propName.indexOf("sys:") == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user