deas / contentreich-alfresco-datalists

Datalist Extensions for Alfresco Share
16 stars 26 forks source link

Version history not showing up #24

Closed billerby closed 9 years ago

billerby commented 9 years ago

Had problems with the version history not showing for a datalistitem anymore. Tracked this down to the form-config where it says:

<show id="cm:versionable"/>

and

<field id="cm:versionable" label-id="form.label.version-history" set="normal">
    <control template="/org/alfresco/components/form/controls/version.ftl" />
</field>

There is no property named cm:versionable, that is the name of the aspect. I think alfresco earlier did not check this up, but just outputted the ftl-content anyway. I changed to the property cm:versionLabel instead and the thing works again. However there is a conditional-statement at the top of the ftl that still are causing me a headache. Will investigate further before making a pull request.