Skip to content
Snippets Groups Projects
Commit 7615f2d3 authored by Tim Hunt's avatar Tim Hunt
Browse files

Fix tidy question when you rename the 1st node in a PRT.

parent a3beca77
Branches
No related tags found
No related merge requests found
......@@ -767,6 +767,10 @@ class qtype_stack extends question_type {
$DB->set_field('qtype_stack_prt_nodes', 'falsenextnode', $to,
array('questionid' => $questionid, 'prtname' => $prtname, 'falsenextnode' => $from));
// PRT first node link.
$DB->set_field('qtype_stack_prts', 'firstnodename', $to,
array('questionid' => $questionid, 'name' => $prtname, 'firstnodename' => $from));
$transaction->allow_commit();
$this->notify_question_edited($questionid);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment