Teachers can be removed in the course_edit.php page

1.9.x
Julio Montoya 11 years ago
parent d2c4244721
commit 3f23c7f936
  1. 2
      main/admin/course_edit.php
  2. 6
      main/cron/import_csv.php

@ -270,7 +270,7 @@ if ($form->validate()) {
CourseManager::updateTeachers($course_code, $teachers, false, true, false);
} else {
// Normal behaviour
CourseManager::updateTeachers($course_code, $teachers, false, false);
CourseManager::updateTeachers($course_code, $teachers, true, false);
}
$sql = "INSERT IGNORE INTO ".$course_user_table . " SET

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
if (PHP_SAPI !='cli') {
die('Run this script through the command line or comment this line in the code');
@ -140,6 +141,9 @@ class ImportCsv
}
}
/**
* Prepares extra fields before the import
*/
private function prepareImport()
{
// Create user extra field: extra_external_user_id
@ -154,7 +158,7 @@ class ImportCsv
/**
* @param string $file
*/
function moveFile($file)
private function moveFile($file)
{
$moved = str_replace('incoming', 'treated', $file);

Loading…
Cancel
Save