Skip to content

Commit

Permalink
Fix webservices see BT#10725
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 3, 2016
1 parent bbbeaf5 commit 40e70a6
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 57 deletions.
3 changes: 2 additions & 1 deletion main/cron/import_csv.php
Expand Up @@ -1357,7 +1357,8 @@ private function importSessionsStatic($file)
$courseArray = bracketsToArray($course);
$courseCode = $courseArray[0];
if (CourseManager::course_exists($courseCode)) {
$courseList[] = $courseCode;
$courseInfo = api_get_course_info($courseCode);
$courseList[] = $courseInfo['real_id'];
}
}

Expand Down
2 changes: 1 addition & 1 deletion main/inc/lib/sessionmanager.lib.php
Expand Up @@ -2111,7 +2111,7 @@ public static function add_courses_to_session(
FROM $tbl_session_rel_user
WHERE
session_id = $sessionId AND
relation_type<>" . SESSION_RELATION_TYPE_RRHH . "";
relation_type<>" . SESSION_RELATION_TYPE_RRHH;
$result = Database::query($sql);
$user_list = Database::store_result($result);

Expand Down

1 comment on commit 40e70a6

@ywarnier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit difficult to distinguish code style changes (camelCasing) from the real change (course real_id)

Please sign in to comment.