Moodle

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

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor 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> )

Activity

Hide
Tim Hunt added a comment -

I am about to explain in the forum thread.

Show
Tim Hunt added a comment - I am about to explain in the forum thread.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: