Index: main/plugin-odf-sync/src/org/ametys/plugins/odfsync/cdmfr/AbstractCDMFrManager.java =================================================================== --- main/plugin-odf-sync/src/org/ametys/plugins/odfsync/cdmfr/AbstractCDMFrManager.java (revision 40932) +++ main/plugin-odf-sync/src/org/ametys/plugins/odfsync/cdmfr/AbstractCDMFrManager.java (working copy) @@ -849,11 +849,9 @@ { clCode = org.ametys.runtime.util.StringUtils.generateKey(); } - else - { - // store remote code to be able to remove old local course lists if source prevails. - remoteChildCodes.add(clCode); - } + + // store remote code to be able to remove old local course lists if source prevails. + remoteChildCodes.add(clCode); String clType = clNode.getAttributes().getNamedItem("choiceType") != null ? clNode.getAttributes().getNamedItem("choiceType").getTextContent().trim() : null; String clEcts = clNode.getAttributes().getNamedItem("ects") != null ? clNode.getAttributes().getNamedItem("ects").getTextContent().trim() : null;