cancel
Showing results for 
Search instead for 
Did you mean: 

Changing version labels

martihno
Champ in-the-making
Champ in-the-making
Hi everyone,

I have a problem with versions. I created document with their versions programmatically. But i have to change their labels.

For example:
when i create document with 3 versions, in version history will be versions with 1.1, 1.2 and 1.3 labels. (1.3 will be current version). But i want to change some of them and i really don't know how. I tried so many solutions but none of them work.

Please help me, I really need help cause i have no more ideas..

Thanks in advance
1 REPLY 1

cheffilet
Champ in-the-making
Champ in-the-making
I guess its not possible at all, without changing alfresco itself. If you want to set VersionModel.versionLabel property on hand, an exception will be thrown due to checkup by VersionUtil.checkVersionPropertyNames checks this property for existance