Permalink
Browse files

Merged fixes for MDL-6334 from HEAD

  • Loading branch information...
moodler
moodler committed Sep 27, 2006
1 parent 158210e commit 3398e99d5d89bb381a68d1a1c6b92323421cb199
Showing with 4 additions and 6 deletions.
  1. +4 −6 mod/assignment/lib.php
View
@@ -802,13 +802,11 @@ function display_submission($extra_javascript = '') {
$assignment = $this->assignment;
$cm = $this->cm;
- if ($groupmode = groupmode($course, $cm)) { // Groups are being used
- $currentgroup = setup_and_print_groups($course, $groupmode, 'submissions.php?id='.$this->cm->id);
- } else {
- $currentgroup = false;
- }
/// Get all teachers and students
+
+ $currentgroup = get_current_group($course->id);
+
if ($currentgroup) {
$users = get_group_users($currentgroup);
} else {
@@ -822,7 +820,7 @@ function display_submission($extra_javascript = '') {
'WHERE u.id IN ('.implode(',', array_keys($users)).') ';
require_once($CFG->libdir.'/tablelib.php');
- if($sort = flexible_table::get_sql_sort('mod-assignment-submissions')) {
+ if ($sort = flexible_table::get_sql_sort('mod-assignment-submissions')) {
$sort = 'ORDER BY '.$sort.' ';
}

0 comments on commit 3398e99

Please sign in to comment.