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

Give question type a chance to upgrade it's attempts data upon editing a question

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.6
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Since editing a questions with existing attetmpts should definitely be allowed, a question type should have a possibility to change attempt data to avoid breaks (and even try to save the students answers from corruption in some cases). This could be done by adding to a question type a function like

      upgrade_existing_responses($oldquestion, $newquestion, $responses)

      It is easy to implement in question engine and will add to quiz correctess and stability without restraining the user.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: