Browse Source

Fix subscribe course to DRH

Angel Fernando Quiroz Campos 10 năm trước cách đây
mục cha
commit
5105bde9ee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main/inc/lib/course.lib.php

+ 1 - 1
main/inc/lib/course.lib.php

@@ -3122,7 +3122,7 @@ class CourseManager
                         relation_type=" . COURSE_RELATION_TYPE_RRHH . " AND
                         access_url_id = " . api_get_current_access_url_id() . "";
         } else {
-            $sql = "SELECT course_code FROM $tbl_course_rel_user
+            $sql = "SELECT c_id FROM $tbl_course_rel_user
                     WHERE user_id = $hr_manager_id AND relation_type=" . COURSE_RELATION_TYPE_RRHH . " ";
         }
         $result = Database::query($sql);