Cette page ne doit être appliquée que si le script de migration assistée vous demande de passer la migration manuelle code.CMS.20250324-restore-content-attachments
La fonction de workflow org.ametys.cms.workflow.RestoreRevisionFunction nécessite désormais l'appel à une seconde fonction pour restaurer les pièces jointes du contenu en même temps que le contenu.
Il vous faut ajouter la fonction org.ametys.cms.workflow.RestoreContentAttachmentsFunction après l'appel à la EditContentFunction .
Par exemple :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<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> Devient :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<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>