Skip to content
Snippets Groups Projects
Commit 0c35b111 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Missed options in the backup/restore code...

parent 1370c36a
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class backup_qtype_stack_plugin extends backup_qtype_plugin {
// Now create the necessary elements.
$stackoptions = new backup_nested_element('stackoptions', array('id'),
array('questionvariables', 'specificfeedback', 'specificfeedbackformat',
array('stackversion', 'questionvariables', 'specificfeedback', 'specificfeedbackformat',
'questionnote', 'questionsimplify', 'assumepositive', 'assumereal',
'prtcorrect', 'prtcorrectformat', 'prtpartiallycorrect', 'prtpartiallycorrectformat',
'prtincorrect', 'prtincorrectformat', 'multiplicationsign', 'sqrtsign',
......
......@@ -76,6 +76,10 @@ class restore_qtype_stack_plugin extends restore_qtype_plugin {
$data = (object)$data;
if (!property_exists($data, 'stackversion')) {
$data->stackversion = '';
}
if (!property_exists($data, 'inversetrig')) {
$data->inversetrig = 'cos-1';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment