Skip to content
Permalink
Browse files

MDL-35358 Lesson Module: fixed teacher grade essays display when less…

…on is only available for group members only
  • Loading branch information...
Michael de Raadt Rossiani Wijaya
Michael de Raadt authored and Rossiani Wijaya committed Oct 29, 2012
1 parent 67ba008 commit 1cd1eb53e5d66979d65275e33fb4cbd80dbe2a94
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/essay.php
@@ -269,12 +269,12 @@
// Get all the users who have taken this lesson, order by their last name
$ufields = user_picture::fields('u');
if (!empty($cm->groupingid)) {
$params["groupinid"] = $cm->groupingid;
$params["groupingid"] = $cm->groupingid;
$sql = "SELECT DISTINCT $ufields
FROM {lesson_attempts} a
INNER JOIN {user} u ON u.id = a.userid
INNER JOIN {groups_members} gm ON gm.userid = u.id
INNER JOIN {groupings_groups} gg ON gm.groupid = :groupinid
INNER JOIN {groupings_groups} gg ON gm.groupid = gg.groupid AND gg.groupingid = :groupingid
WHERE a.lessonid = :lessonid
ORDER BY u.lastname";
} else {

0 comments on commit 1cd1eb5

Please sign in to comment.
You can’t perform that action at this time.