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

Generating navigation by categories and courses causes no access to quiz result reports over the navigation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.2
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Navigation, Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Repeat the test steps from MDL-33013:

      1. Log in as an admin
      2. Turn on editing
      3. Change the navigation block settings to generate only courses/categories.
      4. Browse to a course and check you only see the course + participants + reports in the nav.
      5. Browse to an activity and check you see the course, the section containing the activity and the activity itself. No other sections/activities.
      6. Edit your course settings to show single sections.
      7. Browse to a section and check you see it under the course in the navigation.

      Test this exact issue:

      1. Log in as an admin.
      2. Browse to a course.
      3. Create a quiz and add a single question.
      4. Log in as a student and attempt the quiz.
      5. Log is as an admin.
      6. Turn on editing.
      7. Change the navigation block settings to generate only courses/categories.
      8. Browse to the quiz.
      9. Check you see both info and results nodes under the quiz in the navigation block (in master you won't see the results node).
      Show
      Repeat the test steps from MDL-33013 : Log in as an admin Turn on editing Change the navigation block settings to generate only courses/categories. Browse to a course and check you only see the course + participants + reports in the nav. Browse to an activity and check you see the course, the section containing the activity and the activity itself. No other sections/activities. Edit your course settings to show single sections. Browse to a section and check you see it under the course in the navigation. Test this exact issue: Log in as an admin. Browse to a course. Create a quiz and add a single question. Log in as a student and attempt the quiz. Log is as an admin. Turn on editing. Change the navigation block settings to generate only courses/categories. Browse to the quiz. Check you see both info and results nodes under the quiz in the navigation block (in master you won't see the results node).
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-38442-m25

      Description

      Our navigation block is configured to be generated by categories and courses.

      We add a quiz to the course and some responses. Now we want to have a look at the results. In former versions of Moodle, a branch named "Results" was shown under the navigation entry of the quiz in the navigation block. But this branch is missing.

      It seems like a bug.

      I tried a small workaround and forced the navigation-entry for the results not to hide. I've added a parameter "doNeverHide" in the class navigation_node (lib/navigationlib.php) and evaluated this value in the hide-function. To set this flag, I've extended the function quiz_extend_navigation(...) in mod/quiz/lib.php. Here I set the node $reportnode the flag "doNeverHide".

      This worked for me. It seems as if the recursive call of hide() triggerd by parent nodes causes this behavior.

      Hope my information is useful to resolve this.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13