Merge branch 'MDL-69399-311_lti_alpha' of https://github.com/haietza/moodle into MOODLE_311_STABLE

This commit is contained in:
Jake Dallimore 2020-12-23 11:36:54 +08:00
commit 52976d4eb3

View file

@ -2321,7 +2321,8 @@ function lti_get_lti_types_by_course($courseid, $coursevisible = null) {
FROM {lti_types}
WHERE coursevisible $coursevisiblesql
AND ($coursecond)
AND state = :active";
AND state = :active
ORDER BY name ASC";
return $DB->get_records_sql($query,
array('siteid' => $SITE->id, 'courseid' => $courseid, 'active' => LTI_TOOL_STATE_CONFIGURED) + $coursevisparams);