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

Navigation block: Displays click-to-expand for empty weeks (with Label)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.4, 2.2.1, 2.3
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a new course.
      2. Set the titles of the first 3 weeks in the course to 'This little piggy has one activity', 'This little piggy has none', and 'This little piggy only has a label'.
      3. In the first week, add a Forum.
      4. In the third week, add a Label.
      + Under the course node, the Navigation block should show only the first week 'This little piggy has one activity'.
      5. Edit the Label. While editing, check the navigation.
      + The third week 'This little piggy has only a label' should now be visible in the navigation, since the label is the context node. It should be expanded and contain the label.

      (At present in step 4 it also displays the third week, and clicking to expand the week does not reveal any activities.)

      Show
      1. Create a new course. 2. Set the titles of the first 3 weeks in the course to 'This little piggy has one activity', 'This little piggy has none', and 'This little piggy only has a label'. 3. In the first week, add a Forum. 4. In the third week, add a Label. + Under the course node, the Navigation block should show only the first week 'This little piggy has one activity'. 5. Edit the Label. While editing, check the navigation. + The third week 'This little piggy has only a label' should now be visible in the navigation, since the label is the context node. It should be expanded and contain the label. (At present in step 4 it also displays the third week, and clicking to expand the week does not reveal any activities.)
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-31122-master

      Description

      The navigation block has two useful properties:

      • It displays only course weeks that contain one or more modules.
      • Within course weeks, it displays only modules that you can navigate to (e.g. not Label).

      Unfortunately, taken together these two features do not work: it incorrectly displays course weeks when they only contain the Label module (or other modules that don't have links).

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

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