-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 10.4.2
-
Fix Version/s: 10.4.3
-
Component/s: IMS CP
-
Labels:None
-
Funded by:
It's not possible to navigate through a CP if the navigation for it is disabled in the course.
This solves the problem:
diff --git a/src/main/java/org/olat/course/nodes/cp/CPRunController.java b/src/main/java/org/olat/course/nodes/cp/CPRunController.java --- a/src/main/java/org/olat/course/nodes/cp/CPRunController.java +++ b/src/main/java/org/olat/course/nodes/cp/CPRunController.java @@ -204,7 +204,7 @@ activateFirstPage = false; } cpDispC = CPUIFactory.getInstance().createContentOnlyCPDisplayController(ureq, getWindowControl(), new LocalFolderImpl(cpRoot), - activateFirstPage, false, deliveryOptions, nodecmd, courseResource, cpNode.getIdent()); + activateFirstPage, !config.getBooleanSafe(NodeEditController.CONFIG_COMPONENT_MENU), deliveryOptions, nodecmd, courseResource, cpNode.getIdent()); cpDispC.setContentEncoding(deliveryOptions.getContentEncoding()); cpDispC.setJSEncoding(deliveryOptions.getJavascriptEncoding()); cpDispC.addControllerListener(this);