Skip to content

Commit

Permalink
MDL-58884 competency: Inaccurate stats proficient competencies in course
Browse files Browse the repository at this point in the history
  • Loading branch information
taboubi committed May 10, 2017
1 parent b166037 commit 013982e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions competency/classes/user_competency_course.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ?';
Expand Down

0 comments on commit 013982e

Please sign in to comment.