mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
MDL-66076 forumreport_summary: Added missing SQL group by fields
Also removed a redundant variable declaration.
This commit is contained in:
parent
d4d9b8c67c
commit
9523f0e040
@ -430,7 +430,7 @@ class summary_table extends table_sql {
|
||||
|
||||
$this->sql->basewhere = 'e.courseid = :courseid';
|
||||
|
||||
$this->sql->basegroupby = 'ue.userid, e.courseid, f.id, u.id';
|
||||
$this->sql->basegroupby = 'ue.userid, e.courseid, f.id, u.id, ' . $userfieldssql;
|
||||
|
||||
if ($this->logreader) {
|
||||
$this->fill_log_summary_temp_table($this->context->id);
|
||||
@ -526,7 +526,6 @@ class summary_table extends table_sql {
|
||||
* @return string The complete SQL statement.
|
||||
*/
|
||||
protected function get_full_sql(bool $fullselect = true): string {
|
||||
$selectfields = '';
|
||||
$groupby = '';
|
||||
$orderby = '';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user