mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
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:
parent
a15c745936
commit
1f0157e137
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user