Merge branch 'wip-MDL-33777-master' of git://github.com/marinaglancy/moodle
[moodle.git] / repository / equella / lib.php
index 4da0611..d520a2c 100644 (file)
@@ -85,7 +85,7 @@ class repository_equella extends repository {
                 . '&returnprefix=tle'
                 . '&template=standard'
                 . '&token='.urlencode($this->getssotoken('write'))
-                . '&courseId='.urlencode($COURSE->id)
+                . '&courseId='.urlencode($COURSE->idnumber)
                 . '&courseCode='.urlencode($COURSE->shortname)
                 . '&action=searchThin'
                 . '&forcePost=true'