Update function calls due group id change (previous commit) BT#12609

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 3c285f525f
commit 6098653c0d
  1. 6
      main/cron/import_csv.php

@ -1353,9 +1353,10 @@ class ImportCsv
isset($groupBackup['tutor'][$teacherId][$courseInfo['code']])
) {
foreach ($groupBackup['tutor'][$teacherId][$courseInfo['code']] as $data) {
$groupInfo = GroupManager::get_group_properties($data['group_id']);
GroupManager::subscribe_tutors(
array($teacherId),
$data['group_id'],
$groupInfo,
$data['c_id']
);
}
@ -1366,9 +1367,10 @@ class ImportCsv
!empty($groupBackup['user'][$teacherId][$courseInfo['code']])
) {
foreach ($groupBackup['user'][$teacherId][$courseInfo['code']] as $data) {
$groupInfo = GroupManager::get_group_properties($data['group_id']);
GroupManager::subscribe_users(
array($teacherId),
$data['group_id'],
$groupInfo,
$data['c_id']
);
}

Loading…
Cancel
Save