mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +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
|
@ -56,7 +56,7 @@
|
|||
/// Check to see if groups are being used in this survey
|
||||
if ($group) {
|
||||
$users = get_users_by_capability($context, 'mod/survey:participate', '', '', '', '', $group, null, false);
|
||||
} else if (!empty($CFG->enablegroupings) && !empty($cm->groupingid)) {
|
||||
} else if (!empty($cm->groupingid)) {
|
||||
$groups = groups_get_all_groups($courseid, 0, $cm->groupingid);
|
||||
$groups = array_keys($groups);
|
||||
$users = get_users_by_capability($context, 'mod/survey:participate', '', '', '', '', $groups, null, false);
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
|
||||
if ($currentgroup) {
|
||||
$users = get_users_by_capability($context, 'mod/survey:participate', '', '', '', '', $currentgroup, null, false);
|
||||
} else if (!empty($CFG->enablegroupings) && !empty($cm->groupingid)) {
|
||||
} else if (!empty($cm->groupingid)) {
|
||||
$groups = groups_get_all_groups($courseid, 0, $cm->groupingid);
|
||||
$groups = array_keys($groups);
|
||||
$users = get_users_by_capability($context, 'mod/survey:participate', '', '', '', '', $groups, null, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue