Permalink
Browse files

Merge branch 'MDL-58884-32' of git://github.com/StudiUM/moodle into M…

…OODLE_32_STABLE
  • Loading branch information...
dmonllao committed May 16, 2017
2 parents cbbfaad + ec66fbb commit 4a1d28e6c66acb2d71d96e5d9cc10b3a9e4562e1
Showing with 2 additions and 0 deletions.
  1. +2 −0 competency/classes/user_competency_course.php
@@ -243,6 +243,8 @@ public static function count_proficient_competencies($courseid, $userid) {
$sql = 'SELECT COUNT(comp.id)
FROM {' . self::TABLE . '} usercoursecomp
JOIN {' . course_competency::TABLE . '} cc
ON usercoursecomp.competencyid = cc.competencyid AND cc.courseid = usercoursecomp.courseid
JOIN {' . competency::TABLE . '} comp
ON usercoursecomp.competencyid = comp.id
WHERE usercoursecomp.courseid = ? AND usercoursecomp.userid = ? AND usercoursecomp.proficiency = ?';

0 comments on commit 4a1d28e

Please sign in to comment.