mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-60174-master' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
bdb157653b
30 changed files with 653 additions and 44 deletions
|
@ -628,6 +628,7 @@ function groups_delete_groupings_groups($courseid, $showfeedback=false) {
|
|||
foreach ($results as $result) {
|
||||
groups_unassign_grouping($result->groupingid, $result->groupid, false);
|
||||
}
|
||||
$results->close();
|
||||
|
||||
// Invalidate the grouping cache for the course
|
||||
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));
|
||||
|
@ -658,6 +659,7 @@ function groups_delete_groups($courseid, $showfeedback=false) {
|
|||
foreach ($groups as $group) {
|
||||
groups_delete_group($group);
|
||||
}
|
||||
$groups->close();
|
||||
|
||||
// Invalidate the grouping cache for the course
|
||||
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));
|
||||
|
@ -690,6 +692,7 @@ function groups_delete_groupings($courseid, $showfeedback=false) {
|
|||
foreach ($groupings as $grouping) {
|
||||
groups_delete_grouping($grouping);
|
||||
}
|
||||
$groupings->close();
|
||||
|
||||
// Invalidate the grouping cache for the course.
|
||||
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue