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

Navigation of "my courses" shows all courses and course categories of the system when navshowmycoursecategories is set to "on"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.5, 2.5.1
    • 2.4.3
    • Navigation
    • None
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • wip-MDL-38631-master
    • Hide
      1. Create several categories and several courses, enrol student in some of them
      2. Enable categories in my courses
      3. Make sure only courses where user is enrolled are shown under "My courses"
      4. Configure navigation block to link to categories
      5. Make sure categories in "My courses" have links now
      Show
      Create several categories and several courses, enrol student in some of them Enable categories in my courses Make sure only courses where user is enrolled are shown under "My courses" Configure navigation block to link to categories Make sure categories in "My courses" have links now

      In the moodle navigation is an area for "my courses" where you normally see only the courses you are enroled in.

      If you set navshowmycoursecategories in Site Administration --> Appearance --> Navigation to "off", you receive a flat list of your enroled courses (as expected).
      If you set navshowmycoursecategories to "on", you receive ALL courses and ALL course categories of the system, however depending on the variable navcourselimit.

      Replication steps:
      This requires a site with multiple courses in more than one category. There should be a student enrolled in one or more of the courses, but not all.

      1. Log in as a student in one browser.
      2. Click on Navigation > Home > My courses
      3. Note the courses shown
      4. Log in as an admin in another browser
      5. Navigate to Site Administration > Appearance > Navigation
      6. Check "Show my course categories" (navshowmycoursecategories)
      7. Save settings
      8. Go to student browser
      9. Refresh
      10. Click on Navigation > Home > My courses

      Expected result: only enrolled courses should be shown

      Actual result: all courses and categories are shown

        1. screenshot-2.jpg
          screenshot-2.jpg
          202 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          195 kB
        3. mycoursesexpanded.png
          mycoursesexpanded.png
          8 kB

            marina Marina Glancy
            matthias.baume@tum.de Matthias Baume
            Sam Hemelryk Sam Hemelryk
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.