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

Very obscure notice in the quiz code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4, 2.5
    • Fix Version/s: 2.4.6, 2.5.2, 2.6
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a simple quiz that allows multiple attempts (e.g. 1 true-false question).
      2. Enrol user u1 in the course as a student.
      3. As user u1, attempt the quiz.
      4. Now change u1's role from Student to Teacher.
      5. As user u1, try to preview the quiz. You should be able to.
      6. Now edit the quiz settings and just change the name and click save.
      7. Verify there is no notice about undefined property sumgrades.
      8. Now edit the quiz settings and just change the grading method and click save.
      9. Verify there is no notice about undefined property sumgrades.

      Show
      1. Create a simple quiz that allows multiple attempts (e.g. 1 true-false question). 2. Enrol user u1 in the course as a student. 3. As user u1, attempt the quiz. 4. Now change u1's role from Student to Teacher. 5. As user u1, try to preview the quiz. You should be able to. 6. Now edit the quiz settings and just change the name and click save. 7. Verify there is no notice about undefined property sumgrades. 8. Now edit the quiz settings and just change the grading method and click save. 9. Verify there is no notice about undefined property sumgrades.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      I think the only way to trigger this notice is to do the testing instructions for MDL-35868, and then edit the quiz settings.

      Anyway, I found the issue, and this is the fix.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Integrator:
              Marina Glancy
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/13