From 5abe69ec0e20c48fb02ceda98c6410109eb1e549 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Wed, 21 Sep 2011 19:59:45 +0000 Subject: [PATCH] CSPACE-3270,CSPACE-1018: Displayname in Contact records is now updated when record updates are performed. --- .../contact/nuxeo/ContactDocumentModelHandler.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java b/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java index d3cb257af..0cb6d71fa 100644 --- a/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java +++ b/services/contact/service/src/main/java/org/collectionspace/services/contact/nuxeo/ContactDocumentModelHandler.java @@ -92,6 +92,15 @@ public class ContactDocumentModelHandler handleInAuthority(wrapDoc.getWrappedObject()); handleDisplayNames(wrapDoc.getWrappedObject()); } + + /* (non-Javadoc) + * @see org.collectionspace.services.nuxeo.client.java.DocumentModelHandler#handleUpdate(org.collectionspace.services.common.document.DocumentWrapper) + */ + @Override + public void handleUpdate(DocumentWrapper wrapDoc) throws Exception { + super.handleUpdate(wrapDoc); + handleDisplayNames(wrapDoc.getWrappedObject()); + } /** * Check the logic around the parent pointer. Note that we only need do this on -- 2.47.3