Skip to content

Commit a9dd0c6

Browse files
committed
repair sorting in triggered courses and step courses lists
1 parent d7954e8 commit a9dd0c6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

classes/local/table/process_courses_table.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class process_courses_table extends \table_sql {
4545
/**
4646
* Builds a table of courses.
4747
* @param array $courseids of the courses to list
48-
* @param string $workflowname optional, if type delayed
49-
* @param null $workflowid optional, if type delayed
48+
* @param string $workflowname
49+
* @param null $workflowid
5050
* @param string $filterdata optional, term to filter the table by course id or -name
5151
* @throws \coding_exception
5252
* @throws \dml_exception
@@ -96,7 +96,6 @@ public function __construct($courseids, $workflowname = '', $workflowid = null,
9696
}
9797

9898
$this->set_sql($fields, $from, $where, $inparams);
99-
$this->set_sortdata([['sortby' => 'fullname', 'sortorder' => '1']]);
10099
}
101100

102101
/**

classes/local/table/triggered_courses_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function __construct($courseids, $type, $triggername = '', $workflowname
134134
}
135135

136136
$this->set_sql($fields, $from, $where, $inparams);
137-
$this->set_sortdata([['sortby' => 'fullname', 'sortorder' => '1']]);
137+
// $this->set_sortdata([['sortby' => 'fullname', 'sortorder' => '1']]);
138138
}
139139

140140
/**

0 commit comments

Comments
 (0)