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:
Derek Hulley
2007-05-30 22:33:06 +00:00
parent 4cfeec0306
commit 95972722b3

View File

@@ -756,7 +756,13 @@ public class MultilingualContentServiceImpl implements MultilingualContentServic
ContentData translationOfContentData = (ContentData) nodeService.getProperty(translationOfNodeRef, ContentModel.PROP_CONTENT); ContentData translationOfContentData = (ContentData) nodeService.getProperty(translationOfNodeRef, ContentModel.PROP_CONTENT);
if (translationOfContentData != null) 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 // set it empty