Author: tmortagne
Date: 2007-10-23 17:17:53 +0200 (Tue, 23 Oct 2007)
New Revision: 5464
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
Log:
When delete a document via XWiki.deleteDocument , notification manager is
called for a document change with "new doc" set as the deleted document and
"old doc" as an empty XWikiDocument.
Problem is that it would be more correct to have "new doc" as empty
XWikiDocument and "old doc" as deleted document.
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2007-10-23 15:17:49 UTC (rev 5463)
+++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2007-10-23 15:17:53 UTC (rev 5464)
@@ -3225,7 +3225,7 @@
doc, context.getUser(), new Date(), context, true);
}
getStore().deleteXWikiDoc(doc, context);
- getNotificationManager().verify(doc, new XWikiDocument(doc.getSpace(),
doc.getName()),
+ getNotificationManager().verify(new XWikiDocument(doc.getSpace(), doc,
doc.getName()),
XWikiDocChangeNotificationInterface.EVENT_CHANGE, context);
}
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications