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

regrade not considering responses given on last attempt

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.4, 1.7.1
    • Fix Version/s: 1.6.6, 1.7.2, 1.8, 1.9
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Problem:
      It was observed on a quiz using multiple attempts with build on last, no adaptative (but suitable to be observed in other cases too).

      As an example, imagine that on the 1st attempt, student answers question 1 2 3 leaving 4 5 6 clear. On 2nd attempt, the previous values are filled in
      and the students answers question 5. Everithing gets correctly graded, values on DB are OK.

      Then, without altering none of the questions, the teacher hits regrade tab, 2nd attempt only considers only question five 5 while grading,
      reseting results (grade, raw_grade, ..) out of 1 2 3, but strangely the answers are still there.

      Solution:
      Fix unchanged responses decision's code on question_process_responses() from lib/questionlib.php (backported from v1.8)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    30/Mar/07