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

Fix coding error from progress bar when no sub-questions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Either :

      1 )

      Create a quiz with one question and no random questions in it.

      Have three different students attempt the quiz.

      OR

      2)

      Restore the attached minimal_quiz.mbz in any course.

      Check the statistics report (found below the Results link in the Quiz Admin menu) and see that the statistics report is generated normally with no error.

      Note that if you see text at the top of the statistics report page saying something like " Last calculated 2 mins 25 secs ago there have been 0 attempts since then." This means you are looking at a cached version of the report, in order to test the generation of the report you would need to press the button that appears immediately below such a message that says "Recalculate Now".

      Show
      Either : 1 ) Create a quiz with one question and no random questions in it. Have three different students attempt the quiz. OR 2) Restore the attached minimal_quiz.mbz in any course. — Check the statistics report (found below the Results link in the Quiz Admin menu) and see that the statistics report is generated normally with no error. Note that if you see text at the top of the statistics report page saying something like " Last calculated 2 mins 25 secs ago there have been 0 attempts since then." This means you are looking at a cached version of the report, in order to test the generation of the report you would need to press the button that appears immediately below such a message that says "Recalculate Now".
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-43539-master

      Description

      "parent progress count must be at least 1"

      When there are no sub questions skip creating the progress bar to track the response analysis for sub questions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              jamiesensei Jamie Pratt
              Integrator:
              Damyon Wiese
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14