MDL-58884 core_competency: add exporter required course fields

This commit is contained in:
Simey Lameze 2017-05-17 13:02:48 +08:00
parent 1f36a0796f
commit b991325da2

View File

@ -243,7 +243,9 @@ class course_competency extends persistent {
public static function list_courses($competencyid) {
global $DB;
$results = $DB->get_records_sql('SELECT course.id, course.visible, course.shortname, course.idnumber, course.fullname
$results = $DB->get_records_sql('SELECT course.id, course.visible, course.shortname, course.idnumber,
course.fullname, course.summary, course.summaryformat, course.startdate,
course.enddate
FROM {course} course
JOIN {' . self::TABLE . '} coursecomp
ON coursecomp.courseid = course.id