Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-38215-workshop-oracle_24' of git://github.com/mudrd…

…8mz/moodle into MOODLE_24_STABLE
  • Loading branch information...
commit 147400d8467fa72d9a536fbada1c2de3b9b5bd50 2 parents 0713cc5 + e8c6603
@damyon damyon authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 mod/workshop/locallib.php
View
18 mod/workshop/locallib.php
@@ -418,8 +418,10 @@ public function get_potential_authors($musthavesubmission=true, $groupid=0, $lim
return array();
}
- list($sort, $sortparams) = users_order_by_sql('u');
- $sql .= " ORDER BY $sort";
+ list($sort, $sortparams) = users_order_by_sql('tmp');
+ $sql = "SELECT *
+ FROM ($sql) tmp
+ ORDER BY $sort";
return $DB->get_records_sql($sql, array_merge($params, $sortparams), $limitfrom, $limitnum);
}
@@ -467,8 +469,10 @@ public function get_potential_reviewers($musthavesubmission=false, $groupid=0, $
return array();
}
- list($sort, $sortparams) = users_order_by_sql('u');
- $sql .= " ORDER BY $sort";
+ list($sort, $sortparams) = users_order_by_sql('tmp');
+ $sql = "SELECT *
+ FROM ($sql) tmp
+ ORDER BY $sort";
return $DB->get_records_sql($sql, array_merge($params, $sortparams), $limitfrom, $limitnum);
}
@@ -518,8 +522,10 @@ public function get_participants($musthavesubmission=false, $groupid=0, $limitfr
return array();
}
- list($sort, $sortparams) = users_order_by_sql();
- $sql .= " ORDER BY $sort";
+ list($sort, $sortparams) = users_order_by_sql('tmp');
+ $sql = "SELECT *
+ FROM ($sql) tmp
+ ORDER BY $sort";
return $DB->get_records_sql($sql, array_merge($params, $sortparams), $limitfrom, $limitnum);
}
Please sign in to comment.
Something went wrong with that request. Please try again.