mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
MT - AR-2152 - translation no longer required
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8472 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1028,12 +1028,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
|||||||
// get the property definition
|
// get the property definition
|
||||||
PropertyDefinition propertyDef = propDefs.get(propertyQName);
|
PropertyDefinition propertyDef = propDefs.get(propertyQName);
|
||||||
|
|
||||||
if ((propertyDef != null) && (propertyDef.getDataType().getName().equals(DataTypeDefinition.NODE_REF)) &&
|
|
||||||
(propertyValue != null) && (propertyValue.getStringValue() != null))
|
|
||||||
{
|
|
||||||
propertyValue.setStringValue(tenantService.getBaseName(new NodeRef(propertyValue.getStringValue())).toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
// convert to the correct type
|
// convert to the correct type
|
||||||
Serializable value = makeSerializableValue(propertyDef, propertyValue);
|
Serializable value = makeSerializableValue(propertyDef, propertyValue);
|
||||||
// copy across
|
// copy across
|
||||||
@@ -1089,11 +1083,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
|||||||
|
|
||||||
// Convert any NodeRefs using multi-tenant translation
|
// Convert any NodeRefs using multi-tenant translation
|
||||||
PropertyDefinition propertyDef = dictionaryService.getProperty(qname);
|
PropertyDefinition propertyDef = dictionaryService.getProperty(qname);
|
||||||
if ((propertyDef != null) && (propertyDef.getDataType().getName().equals(DataTypeDefinition.NODE_REF)) &&
|
|
||||||
(propertyValue != null) && (propertyValue.getStringValue() != null))
|
|
||||||
{
|
|
||||||
propertyValue.setStringValue(tenantService.getBaseName(new NodeRef(propertyValue.getStringValue())).toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
// convert to the correct type
|
// convert to the correct type
|
||||||
Serializable value = makeSerializableValue(propertyDef, propertyValue);
|
Serializable value = makeSerializableValue(propertyDef, propertyValue);
|
||||||
|
Reference in New Issue
Block a user