mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge into HEAD from BRANCHES/V1.3
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@2997 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@2998 . svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3003 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3004 . svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3009 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3010 . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -551,7 +551,19 @@ public class ImporterComponent
|
||||
DataTypeDefinition valueDataType = context.getPropertyDataType(property.getKey());
|
||||
if (valueDataType != null && valueDataType.getName().equals(DataTypeDefinition.CONTENT))
|
||||
{
|
||||
importContent(nodeRef, property.getKey(), (String)property.getValue());
|
||||
// the property may be a single value or a collection - handle both
|
||||
Object objVal = property.getValue();
|
||||
if (objVal instanceof String)
|
||||
{
|
||||
importContent(nodeRef, property.getKey(), (String)objVal);
|
||||
}
|
||||
else if (objVal instanceof List)
|
||||
{
|
||||
for (String value : (List<String>)objVal)
|
||||
{
|
||||
importContent(nodeRef, property.getKey(), value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user