Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60312

All courses loaded in navigation when navshowallcourses off

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.5, 3.3.2
    • Fix Version/s: None
    • Component/s: Navigation
    • Labels:
      None
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE

      Description

      Under certain circumstances all categories and courses are displayed in the navigation block even if "Show all courses" is explicitly disabled.

      To reproduce (on a server with a lot of categories and courses, and the navigation block displayed in all courses):

      • Switch navshowallcourses off
      • Switch navshowcategories on
      • As a user with access to courses they are not enrolled on (e.g. admin) enter one of those courses
      • Observe that the "courses" node on the navigation includes not only the current course, but also a large number of other categories and courses

      In this case, I would expect only the current course to be displayed under the "courses" node (maybe nested inside its category).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: