Skip to content
Snippets Groups Projects
Unverified Commit 3c574133 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

process_manager does set waiting status correctly now

parent 0098ba18
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ class process_manager {
$step = step_manager::get_step_instance($process->stepid);
if ($step->followedby) {
$process->stepid = $step->followedby;
$process->waiting = false;
$DB->update_record('tool_cleanupcourses_process', $process);
return true;
} else {
......@@ -80,4 +81,14 @@ class process_manager {
}
}
/**
* Sets the process status on waiting.
* @param process $process
*/
public static function set_process_waiting(&$process) {
global $DB;
$process->waiting = true;
$DB->update_record('tool_cleanupcourses_process', $process);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment