You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/09/06 09:36:28 UTC
svn commit: r278937 -
/lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java
Author: michi
Date: Tue Sep 6 00:36:23 2005
New Revision: 278937
URL: http://svn.apache.org/viewcvs?rev=278937&view=rev
Log:
thanks to Gregor Imboden also the SimpleSiteManager allows deleting documents
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java?rev=278937&r1=278936&r2=278937&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/simple/SimpleSiteManager.java Tue Sep 6 00:36:23 2005
@@ -177,7 +177,7 @@
public void delete(Document document) throws SiteException {
DocumentStore store = getStore(document);
try {
- if (!store.contains(document)) {
+ if (store.contains(document)) {
store.remove(document);
}
} catch (Exception e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org