This page should only be used if the assisted migration script asks you to manually migrate codeCMS.20250324-restore-content-attachments
The workflow function org.ametys.cms.workflow.RestoreRevisionFunction now requires a second function to be called to restore content attachments at the same time as the content.
You need to add the org.ametys.cms.workflow.RestoreContentAttachmentsFunction function after the EditContentFunction call.
For example:
Oops! Copy to clipboard failed. Open the code and copy it manually.<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions> <pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions> Voir le code
<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions> Becomes :
Oops! Copy to clipboard failed. Open the code and copy it manually.<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreContentAttachmentsFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions> <pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreContentAttachmentsFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions> Voir le code
<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreRevisionFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.RestoreContentAttachmentsFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.extensions.ExtensibleFunction</arg>
<arg name="extension-point">org.ametys.cms.workflow.extensions.PostContentEditionFunctionsExtensionPoint</arg>
</function>
</pre-functions>