mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-4903 - When updating the multilingual properties on a node, don't try to touch system properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,7 @@ import javax.faces.context.FacesContext;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.service.cmr.ml.MultilingualContentService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.dialog.BaseDialogBean;
|
||||
@@ -74,12 +75,18 @@ public class EditMLContainerDialog extends BaseDialogBean
|
||||
// get the modified properties
|
||||
Map<String, Object> editProperties = this.editableNode.getProperties();
|
||||
|
||||
// modify the properties of the container with the user modified properties
|
||||
// Modify the properties of the container with the user modified properties
|
||||
// (We don't know which properties have been edited at this point, so edit
|
||||
// all non-core ones)
|
||||
for(Map.Entry<String, Object> entry : editProperties.entrySet())
|
||||
{
|
||||
QName qname = QName.createQName(entry.getKey());
|
||||
|
||||
getNodeService().setProperty(container, qname, (Serializable) entry.getValue());
|
||||
|
||||
if(! qname.getNamespaceURI().equals(NamespaceService.SYSTEM_MODEL_1_0_URI) )
|
||||
{
|
||||
// Update the property on the real node
|
||||
getNodeService().setProperty(container, qname, (Serializable) entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
return outcome;
|
||||
|
Reference in New Issue
Block a user