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

Description for "Show all courses" navigation setting needs to be updated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.2.5, 2.3.2, 2.4
    • Fix Version/s: 2.2.6, 2.3.3
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      1. search for "Show all courses" setting
      2. make sure you see an updated description for the setting saying it is limited by "navcourselimit"
    • Workaround:
      Hide

      Set "Course limit" to a number greater than the number of courses in your Moodle instance, and all the courses will always be listed.

      Show
      Set "Course limit" to a number greater than the number of courses in your Moodle instance, and all the courses will always be listed.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-28965-master

      Description

      Under "Site administration > Appearance > Navigation" there is an admin setting $CFG->navshowallcourses, labeled "Show all courses". Its help text reads "Setting this ensures that all courses on the site are shown in the navigation at all times."

      However, if you activate this setting, it still limits the number of courses shown in the Navigation block to the number set in the "Course limit" field, $CFG->navcourselimit.

      The help text for $CFG->navshowallcourses suggests that if it's ticked, you should see all the courses all the time, effectively overriding $CFG->navcourselimit. We should implement that, or alternately, update the help text so that it more accurately describes what $CFG->navshowallcourses is supposed to be doing.

      Replication instructions:
      1. Create a Moodle instance with 10 courses in it
      2. Go to "Site Administration > Appearance > Navigation".
      3. Tick the box for "Show all courses"
      4. Set "Course limit" to 5.
      5. Enter a course and look at the Navigation block

      Actual result: You will see only 5 courses listed in the Navigation block

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12