Right.. #if(!$doc.isNew()) could be added. Let's make a JIRA task so
that we think about fixing this
Ludovic
Duke Tantiprasut a écrit :
Hi All,
I get the following exception when a new page that has yet to be saved is
deleted.
How do you check whether a page exists and it's ok to be deleted? Is there
some #if checks I can put in the template .vm so that the delete button only
appears if the page is valid?
Thanks
Duke
Error number 3203 in 3: Exception while deleting document Main.TestForm
Wrapped Exception: Batch update returned unexpected row count from update: 0
actual row count: 0 expected: 1
com.xpn.xwiki.XWikiException: Error number 3203 in 3: Exception while
deleting document Main.TestForm Wrapped Exception: Batch update returned
unexpected row count from update: 0 actual row count: 0 expected: 1
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateStore.j
ava:775)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:143)
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic