mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Empty translation must begin life with a null content URL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -756,7 +756,13 @@ public class MultilingualContentServiceImpl implements MultilingualContentServic
|
||||
ContentData translationOfContentData = (ContentData) nodeService.getProperty(translationOfNodeRef, ContentModel.PROP_CONTENT);
|
||||
if (translationOfContentData != null)
|
||||
{
|
||||
nodeService.setProperty(newTranslationNodeRef, ContentModel.PROP_CONTENT, translationOfContentData);
|
||||
ContentData newTranslationContentData = new ContentData(
|
||||
null,
|
||||
translationOfContentData.getMimetype(),
|
||||
translationOfContentData.getSize(),
|
||||
translationOfContentData.getEncoding(),
|
||||
translationOfContentData.getLocale());
|
||||
nodeService.setProperty(newTranslationNodeRef, ContentModel.PROP_CONTENT, newTranslationContentData);
|
||||
}
|
||||
|
||||
// set it empty
|
||||
|
Reference in New Issue
Block a user