On 05/26/2014 08:47 AM, Jeremie BOUSQUET wrote:
Hi,
Prior to saving, you can :
$doc.getDocument().setMetaDataDirty(false)
$doc.getDocument().setContentDirty(false)
But this requires programming rights, so it won't work for normal users.
The best place to do this is in Java.
You shouldn't save a document in contentview.vm (or any view mode).
Hope this helps,
Jeremie
2014-05-26 13:42 GMT+02:00 walid yaich <walid.yaich(a)gmail.com>om>:
Hi,
I added $doc.save() in contentview.vm to save the object added to my doc,
this save increment the revision.
is it possible to tell the save to not increment the version ?
Thanks in advance :)
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Sergiu Dumitriu
http://purl.org/net/sergiu