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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.7, 1.8, 1.9
    • None
    • Questions, Quiz
    • None
    • 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

            timhunt Tim Hunt
            brianking Brian King
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: