mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT.
This commit is contained in:
parent
d04d6bcbec
commit
008b2b07ab
@ -214,10 +214,9 @@
|
||||
|
||||
$sesskey = !empty($USER->id) ? $USER->sesskey : '';
|
||||
|
||||
//DONOTCOMMIT: TODO:
|
||||
//TODO:
|
||||
if (debugging()) {
|
||||
echo '<p>[ <a href="../group/groupui/?id='. $courseid .'">AJAX groups</a>
|
||||
| <a href="../group/index.php?id='. $courseid .'">New groups</a> - debugging.]</p>';
|
||||
echo '<p>[ <a href="../group/index.php?id='. $courseid .'">New groups</a> - debugging. ]</p>';
|
||||
}
|
||||
|
||||
/// Print out the complete form
|
||||
|
@ -1766,7 +1766,6 @@ function validate_context($contextlevel, $instanceid) {
|
||||
return (boolean)count_records('course', 'id', $instanceid);
|
||||
|
||||
case CONTEXT_GROUP:
|
||||
//return (boolean)count_records('groups_groups', 'id', $instanceid); //TODO:DONOTCOMMIT:
|
||||
return groups_group_exists($instanceid);
|
||||
|
||||
case CONTEXT_MODULE:
|
||||
@ -3914,4 +3913,4 @@ function role_get_name($role, $context) {
|
||||
return format_string($role->name);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user