diff --git a/admin/tool/usertours/classes/step.php b/admin/tool/usertours/classes/step.php index 6049e8feba8..4819ac08029 100644 --- a/admin/tool/usertours/classes/step.php +++ b/admin/tool/usertours/classes/step.php @@ -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.