Cette page ne doit être appliquée que si le script vous demande de passer la migration manuelle code.20260714.ODF-SkillsMCCSessionDisableCondition
La restriction sur les compétences dans les sessions MCC a été transformée en disable condition. Pour trouver des exemples de migration, regarder la PR du ODF-4066
Ajouter la condition Il faut ajouter tout d'abord ajouter la disable condition suivante sur le champ :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" /> <condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" />
<condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" /> Si le champ a déjà des disable condition, vérifier ou ajouter le type "or". Exemple :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<disable-conditions type="or">
<condition id="../../isEvaluated" operator="eq">false</condition>
<condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" />
</disable-conditions> <disable-conditions type="or">
<condition id="../../isEvaluated" operator="eq">false</condition>
<condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" />
</disable-conditions>
<disable-conditions type="or">
<condition id="../../isEvaluated" operator="eq">false</condition>
<condition class="org.ametys.plugins.odfpilotage.course.SkillsMCCSessionDisableCondition" />
</disable-conditions> Modifier la restriction Ensuite, il faut modifier la restriction existante et utiliser la classe RepeaterWithEducationalPathRestriction. Par exemple :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.SkillsMCCSessionRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to> <restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.SkillsMCCSessionRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to>
<restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.SkillsMCCSessionRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to> devient
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.RepeaterWithEducationalPathRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to> <restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.RepeaterWithEducationalPathRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to>
<restrict-to>
<custom-restriction class="org.ametys.plugins.odfpilotage.restriction.RepeaterWithEducationalPathRestriction">
<right read-write-direction="write" id="ODF_Rights_Pilotage_MCC_Fields"/>
</custom-restriction>
</restrict-to>