mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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
|
@ -857,7 +857,7 @@ function scorm_simple_play($scorm,$user) {
|
|||
function scorm_get_count_users($scormid, $groupingid=null) {
|
||||
global $CFG, $DB;
|
||||
|
||||
if (!empty($CFG->enablegroupings) && !empty($groupingid)) {
|
||||
if (!empty($groupingid)) {
|
||||
$sql = "SELECT COUNT(DISTINCT st.userid)
|
||||
FROM {scorm_scoes_track} st
|
||||
INNER JOIN {groups_members} gm ON st.userid = gm.userid
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
if (empty($a)) {
|
||||
// No options, show the global scorm report
|
||||
|
||||
if (!empty($CFG->enablegroupings) && !empty($cm->groupingid)) {
|
||||
if (!empty($cm->groupingid)) {
|
||||
$sql = "SELECT st.userid, st.scormid
|
||||
FROM {scorm_scoes_track} st
|
||||
INNER JOIN {groups_members} gm ON st.userid = gm.userid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue