Skip to content
Snippets Groups Projects
Commit bb9a5f4d authored by Matti Harjula's avatar Matti Harjula Committed by Tim Hunt
Browse files

Importing from older versions of STACK gives an error.

parent 56038e91
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php');
require_once(dirname(__FILE__) . '/stack/questiontest.php');
require_once(dirname(__FILE__) . '/stack/graphlayout/graph.php');
/**
......@@ -177,6 +178,7 @@ class qtype_stack extends question_type {
$prt->questionid = $fromform->id;
$prt->name = $prtname;
$prt->feedbackvariables = '';
$prt->firstnodename = 0;
$prt->id = $DB->insert_record('qtype_stack_prts', $prt);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment