MDL-61328 tool_usertours: do not fix tour sortorder after step editing

otherwise it breaks when we try to modify the step sortorder
This commit is contained in:
Marina Glancy 2018-02-01 11:47:18 +08:00
parent a15c745936
commit 1f0157e137

View File

@ -483,10 +483,9 @@ class step {
$record = $this->to_record();
unset($record->id);
$this->id = $DB->insert_record('tool_usertours_steps', $record);
$this->get_tour()->reset_step_sortorder();
}
$this->get_tour()->reset_step_sortorder();
$this->reload();
// Notify of a change to the step configuration.