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"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.5, 2.5.1
    • Component/s: Navigation
    • Labels:
      None
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-38631-master

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13