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

Backup of question states for third-party question types, when state stored in separate table

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.7, 1.8, 1.9
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      See: http://moodle.org/mod/forum/discuss.php?d=90633

      There's no possibility for third-party questiontypes to backup their custom states in such a way that they are readily available when restore_states() is called during restore.

      I encountered this issue when I wrote a question type which stored the responses not in the answers column of question_states, but in another table.

      I was able to work around it, but it would've been a lot easier if I could've backed up the states in the logical place (e.g. under <ATTEMPTS><ATTEMPT><STATES><STATE> )

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            brianking Brian King
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: