MDL-67980 tasks: Sort ad-hoc tasks by nextruntime.
This commit is contained in:
@@ -486,7 +486,7 @@ class manager {
|
||||
|
||||
$where = '(nextruntime IS NULL OR nextruntime < :timestart1)';
|
||||
$params = array('timestart1' => $timestart);
|
||||
$records = $DB->get_records_select('task_adhoc', $where, $params);
|
||||
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC');
|
||||
|
||||
foreach ($records as $record) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user