Skip to content
Snippets Groups Projects
Commit 03806a10 authored by gnaegi's avatar gnaegi
Browse files

OO-813 fix updating of CP editor menu tree after copy command

parent 920a5647
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,7 @@ public class CPTreeController extends BasicController {
CPManager cpMgm = CPManager.getInstance();
newIdentifier = cpMgm.copyElement(cp, page.getIdentifier());
cpMgm.writeToFile(cp);
updateTree();
}
return newIdentifier;
}
......@@ -329,8 +330,7 @@ public class CPTreeController extends BasicController {
showInfo("cptreecontroller.orga.cannot.be.copied");
} else {
String newIdentifier = copyPage(currentPage);
// this.getInitialComponent().setDirty(true);
contentCtr.displayPage(ureq, newIdentifier);
contentCtr.displayPageWithMetadataEditor(ureq, newIdentifier);
}
} else if (source == deleteLink) {
if (currentPage.isOrgaPage()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment