Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1836

Enable CP navigation if navigation in the course is disabled

    XMLWordPrintable

    Details

    • 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

      Description

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Stephan Clemenz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m