Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

…on is only available for group members only
  • Loading branch information...
commit 8d880a2ec6eb0a72d532084698e033bc7d7dcd65 1 parent 7e8ae12
@deraadt deraadt authored rwijaya committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/essay.php
4 mod/lesson/essay.php
@@ -269,12 +269,12 @@
list($sort, $sortparams) = users_order_by_sql('u');
$params = array_merge($params, $sortparams);
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 = a.userid
INNER JOIN {groups_members} gm ON gm.userid =
- 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 $sort";
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.