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 =
|
var propertiesToSkip =
|
||||||
{
|
{
|
||||||
"cm:name": true,
|
"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)
|
for (index in items)
|
||||||
@@ -73,14 +77,14 @@ function runAction(p_params)
|
|||||||
if (itemNode !== null)
|
if (itemNode !== null)
|
||||||
{
|
{
|
||||||
var duplicateProperties = new Array(),
|
var duplicateProperties = new Array(),
|
||||||
propNames = itemNode.getTypePropertyNames(true),
|
propNames = itemNode.getPropertyNames(true),
|
||||||
propName;
|
propName;
|
||||||
|
|
||||||
// Copy selected properties from the original node
|
// Copy selected properties from the original node
|
||||||
for (var i = 0, ii = propNames.length; i < ii; i++)
|
for (var i = 0, ii = propNames.length; i < ii; i++)
|
||||||
{
|
{
|
||||||
propName = propNames[i];
|
propName = propNames[i];
|
||||||
if (propName in propertiesToSkip)
|
if (propName in propertiesToSkip || propName.indexOf("sys:") == 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user