From 5162e3e2e5803b7400b62bb58c5f2e214bf93cc6 Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Tue, 11 Aug 2009 22:12:48 +0000 Subject: [PATCH] - Changed generation of unique identifier, no longer appears as a field on the create screens, instead gets generated after the node is persisted, the identifier is then generated using the same algorithm as used for records i.e. year-. The idenifier still appears on the edit screen so can be changed if desired. - Moved the StreamArchive webscript implementation to remote API project so it can be re-used by other non RM webscripts - Added skeleton for transfer REST API git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/forms/processor/node/TypeFormProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/java/org/alfresco/repo/forms/processor/node/TypeFormProcessor.java b/source/java/org/alfresco/repo/forms/processor/node/TypeFormProcessor.java index a2c869038a..952cb0913c 100644 --- a/source/java/org/alfresco/repo/forms/processor/node/TypeFormProcessor.java +++ b/source/java/org/alfresco/repo/forms/processor/node/TypeFormProcessor.java @@ -285,6 +285,10 @@ public class TypeFormProcessor extends ContentModelFormProcessor // create the parent NodeRef parentRef = new NodeRef((String)destination.getValue()); + // remove the destination data to avoid warning during persistence, this can + // always be retrieved by looking up the created node's parent + data.removeFieldData(DESTINATION); + // TODO: determine what association to use when creating the node in the destination, // defaults to ContentModel.ASSOC_CONTAINS