Group : delete all reference to a group even if the reference is with another course (which should not happens but happens sometime

pull/4863/head
NicoDucou 2 years ago
parent 5add3c5cf3
commit 59a29cbaaf
  1. 2
      main/inc/lib/groupmanager.lib.php

@ -499,7 +499,7 @@ class GroupManager
// to_group_id is related to c_group_info.iid
$itemPropertyTable = Database::get_course_table(TABLE_ITEM_PROPERTY);
$sql = "DELETE FROM $itemPropertyTable
WHERE c_id = $course_id AND to_group_id = $groupIid ";
WHERE to_group_id = $groupIid ";
Database::query($sql);
// delete the groups

Loading…
Cancel
Save