|
|
|
saving a document raised BEFORE_DOCUMENT_UPDATE and then DOCUMENT_UPDATED. The problem is they are both raised before the write model call ... I would say we should move the DOCUMENT_UPDATED code after that call and use the BEFORE_DOCUMENT_UPDATE instead where needed but I don't want to break anything.
the annotated source code is the following. Interested parties, please give us input as comments on this issue:
19364 atchertchian options.put(CoreEventConstants.DOCUMENT, doc);
19364 atchertchian notifyEvent(DocumentEventTypes.BEFORE_DOC_UPDATE, docModel,
19364 atchertchian options, null, null, true);
15758 sfermigier
21523 bstefanescu // modify document - DO NOT write doc twice -> since internal document listeners was removed
21523 bstefanescu // docModel = writeModel(doc, docModel);
18396 bchaffangeon
19364 atchertchian notifyEvent(DocumentEventTypes.DOCUMENT_UPDATED, docModel, options,
18449 gracinet null, null, true);
19364 atchertchian docModel = writeModel(doc, docModel);
|
|
|
|
![]() |
|
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets