diff --git a/source/java/org/alfresco/web/bean/repository/TransientNode.java b/source/java/org/alfresco/web/bean/repository/TransientNode.java index 23abab0b15..c8415cc414 100644 --- a/source/java/org/alfresco/web/bean/repository/TransientNode.java +++ b/source/java/org/alfresco/web/bean/repository/TransientNode.java @@ -234,7 +234,7 @@ public class TransientNode extends Node // create a association reference, add it to a list and add the list // to the list of associations for this node List assocs = new ArrayList(1); - AssociationRef assocRef = new AssociationRef(this.nodeRef, assocDef.getName(), target); + AssociationRef assocRef = new AssociationRef(null, this.nodeRef, assocDef.getName(), target); assocs.add(assocRef); this.associations.put(item, assocs); @@ -250,7 +250,7 @@ public class TransientNode extends Node if (target instanceof NodeRef) { NodeRef currentTarget = (NodeRef)target; - AssociationRef assocRef = new AssociationRef(this.nodeRef, assocDef.getName(), currentTarget); + AssociationRef assocRef = new AssociationRef(null, this.nodeRef, assocDef.getName(), currentTarget); assocs.add(assocRef); } } diff --git a/source/java/org/alfresco/web/ui/repo/component/property/UIAssociationEditor.java b/source/java/org/alfresco/web/ui/repo/component/property/UIAssociationEditor.java index d49fc7031e..b7dba2ed76 100644 --- a/source/java/org/alfresco/web/ui/repo/component/property/UIAssociationEditor.java +++ b/source/java/org/alfresco/web/ui/repo/component/property/UIAssociationEditor.java @@ -235,7 +235,7 @@ public class UIAssociationEditor extends BaseAssociationEditor if (node != null && targetRef != null) { QName assocQName = Repository.resolveToQName(this.associationName); - AssociationRef newAssoc = new AssociationRef(node.getNodeRef(), assocQName, new NodeRef(targetRef)); + AssociationRef newAssoc = new AssociationRef(null, node.getNodeRef(), assocQName, new NodeRef(targetRef)); // update the node so it knows to remove the association, but only if the association // was one of the original ones @@ -279,7 +279,7 @@ public class UIAssociationEditor extends BaseAssociationEditor if (this.originalAssocs.containsKey(targetRef) == false) { QName assocQName = Repository.resolveToQName(this.associationName); - AssociationRef newAssoc = new AssociationRef(node.getNodeRef(), assocQName, + AssociationRef newAssoc = new AssociationRef(null, node.getNodeRef(), assocQName, new NodeRef(targetRef)); Map added = node.getAddedAssociations().get(this.associationName);