mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints
This commit is contained in:
parent
e8c2189d78
commit
98da60215e
31 changed files with 137 additions and 214 deletions
|
@ -243,7 +243,7 @@ switch ($mode) {
|
|||
list($usql, $parameters) = $DB->get_in_or_equal(array_keys($pages));
|
||||
if ($essayattempts = $DB->get_records_select('lesson_attempts', 'pageid '.$usql, $parameters)) {
|
||||
// Get all the users who have taken this lesson, order by their last name
|
||||
if (!empty($CFG->enablegroupings) && !empty($cm->groupingid)) {
|
||||
if (!empty($cm->groupingid)) {
|
||||
$params["groupinid"] = $cm->groupingid;
|
||||
$sql = "SELECT DISTINCT u.*
|
||||
FROM {lesson_attempts} a
|
||||
|
|
|
@ -44,7 +44,7 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
|||
require_capability('mod/lesson:manage', $context);
|
||||
|
||||
$params = array("lessonid" => $lesson->id);
|
||||
if (!empty($CFG->enablegroupings) && !empty($cm->groupingid)) {
|
||||
if (!empty($cm->groupingid)) {
|
||||
$params["groupid"] = $cm->groupingid;
|
||||
$sql = "SELECT DISTINCT u.id, u.*
|
||||
FROM {lesson_attempts} a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue