Browse Source

Fix course parameter id instead of code see BT 13518

Julio 7 years ago
parent
commit
eafba336ab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/work/work.lib.php

+ 2 - 2
main/work/work.lib.php

@@ -3453,7 +3453,7 @@ function addWorkComment($courseInfo, $userId, $parentWork, $work, $data)
         } else {
             $teachers = SessionManager::getCoachesByCourseSession(
                 $sessionId,
-                $courseInfo['code']
+                $courseInfo['real_id']
             );
 
             if (!empty($teachers)) {
@@ -5634,4 +5634,4 @@ function workGetExtraFieldData($workId)
     }
 
     return $result;
-}
+}