Re: [xwiki-users] Error with groovy script from a page but not in scheduler

2016-04-04 Thread Pascal BASTIEN
My bad, with that, it is working well in my xwiki page :-) xc = xcontext.getContext() gArch.removeVersions(gArch.getLatestVersion(), gArch.getPrevVersion(gArch.getPrevVersion(gArch.getLatestVersion())),xc) En date de : Lun 4.4.16, Pascal BASTIEN a éc

[xwiki-users] Error with groovy script from a page but not in scheduler

2016-04-04 Thread Pascal BASTIEN
Hi, I can't understand an error when I launch a groovy script from a wiki page but I haven't error when my groovy script is launched in scheduler... My nice script delete previous version of MyPage with removeVersions methods: MyGroupAuto = xwiki.getDocument("Space.MyPage") // r