Moodle

Quiz regrading is incorrect

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not a bug
  • Affects Version/s: 1.9, 1.9.1, 1.9.2
  • Fix Version/s: None
  • Component/s: Quiz
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Regrading is not working correctly.

I have a quiz, say 18 questions each counting for 1. Correct answers are 100%, incorrect 0%. Total quiz grade is 100. People have taken the quiz. Now I want to make one of the questions not count towards the quiz grade anymore. I change the value on the quiz edit.php page from 1 to 0, and press regrade. All of the quizzes are regraded, but the question whose grade was changed from 1 to 0 still counts towards the total, but the total is now out of 17. I essentially have people who previously scored 18/18=100% now getting 18/17=105.88%. Same problem if you change the grade from 1->2 or 1->4. Scores are now 18/19 or 18/22 where people still got 100% of the questions correct, but their total is now 18/22 so they no longer have a 100%.

This appears to only affect regrades. If a person takes the exam after the edit to the quiz, it is graded correctly.

Activity

Hide
Terri Matsakis added a comment -

Actually, this is probably a issue with one of the upgrades between 1.3 to 1.9 (we've upgraded someone from 1.3 to 1.9). In the quiz overview report, for quizzes taken before the upgrade, individual question grades are showing up as --/5.88 even when the question was successfully answered. Quizzes from after the upgrade have the values as 5.88/5.88 or 0/5.88. I'm assuming then, that changes in the grade point value for a question resulted in the quiz total having 0 subtracted from it.

Show
Terri Matsakis added a comment - Actually, this is probably a issue with one of the upgrades between 1.3 to 1.9 (we've upgraded someone from 1.3 to 1.9). In the quiz overview report, for quizzes taken before the upgrade, individual question grades are showing up as --/5.88 even when the question was successfully answered. Quizzes from after the upgrade have the values as 5.88/5.88 or 0/5.88. I'm assuming then, that changes in the grade point value for a question resulted in the quiz total having 0 subtracted from it.
Hide
Terri Matsakis added a comment -

question_states.event = 0 for the questions.

Nevermind on this. Presumably an issue from a long time ago.

Show
Terri Matsakis added a comment - question_states.event = 0 for the questions. Nevermind on this. Presumably an issue from a long time ago.
Hide
Tim Hunt added a comment -

Perhaps a useful test to perform is to do a new install of Moodle 1.9 on a test server, and then compare the definition of all the database tables from the new install with your upgraded install. That might give you an idea what went wrong during the update.

(By the way, I am really impressed to the thought that someone was still running 1.3 until recently!)

Show
Tim Hunt added a comment - Perhaps a useful test to perform is to do a new install of Moodle 1.9 on a test server, and then compare the definition of all the database tables from the new install with your upgraded install. That might give you an idea what went wrong during the update. (By the way, I am really impressed to the thought that someone was still running 1.3 until recently!)
Hide
Tim Hunt added a comment -

Resolving Not a bug, as per Terri's last comment.

Show
Tim Hunt added a comment - Resolving Not a bug, as per Terri's last comment.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: