Hi,

Prior to saving, you can :

$doc.getDocument().setMetaDataDirty(false)
$doc.getDocument().setContentDirty(false)

Hope this helps,
Jeremie



2014-05-26 13:42 GMT+02:00 walid yaich <[email protected]>:

> 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
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to