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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user