Fixing BT#1796 when adding a course to a session, users relationship is not updated

skala
Julio Montoya 15 years ago
parent 301ded4ae2
commit 0b1d5446b5
  1. 6
      main/admin/add_courses_to_session.php

@ -118,9 +118,9 @@ if ($_POST['formSent']) {
$rs = Database::query("SELECT course_code FROM $tbl_session_rel_course WHERE id_session=$id_session");
$existingCourses = Database::store_result($rs);
$sql="SELECT id_user
FROM $tbl_session_rel_user
WHERE id_session = $id_session AND relation_type=".COURSE_RELATION_TYPE_RRHH." ";
// Updating only the RRHH users?? why?
//$sql="SELECT id_user FROM $tbl_session_rel_user WHERE id_session = $id_session AND relation_type=".COURSE_RELATION_TYPE_RRHH." ";
$sql = "SELECT id_user FROM $tbl_session_rel_user WHERE id_session = $id_session ";
$result = Database::query($sql);
$UserList = Database::store_result($result);

Loading…
Cancel
Save