mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed ALF-4490: VersionModel.versionType is not declared in the model
- Was being used as a residual property (d:any) - To avoid storage as a serializable, the property is now d:text - Added conversion from String back to VersionType enum git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -876,6 +876,11 @@
|
|||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
<protected>true</protected>
|
<protected>true</protected>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="cm:versionType">
|
||||||
|
<title>Version Type</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<protected>true</protected>
|
||||||
|
</property>
|
||||||
<property name="cm:initialVersion">
|
<property name="cm:initialVersion">
|
||||||
<title>Initial Version</title>
|
<title>Initial Version</title>
|
||||||
<type>d:boolean</type>
|
<type>d:boolean</type>
|
||||||
|
@@ -132,7 +132,9 @@ public class VersionImpl implements Version
|
|||||||
|
|
||||||
public VersionType getVersionType()
|
public VersionType getVersionType()
|
||||||
{
|
{
|
||||||
return (VersionType)this.versionProperties.get(VersionBaseModel.PROP_VERSION_TYPE);
|
return DefaultTypeConverter.INSTANCE.convert(
|
||||||
|
VersionType.class,
|
||||||
|
this.versionProperties.get(VersionBaseModel.PROP_VERSION_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription()
|
public String getDescription()
|
||||||
|
Reference in New Issue
Block a user