From: moodler Date: Wed, 27 Sep 2006 08:29:24 +0000 (+0000) Subject: Fixed MDL-6334 by removing the group-setting popup X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0cfafdc7695bce35a5a3ecc55b2727084685b466;p=moodle.git Fixed MDL-6334 by removing the group-setting popup --- diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index cbb8eb603d..d3d0289bdf 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -806,18 +806,16 @@ class assignment_base { $subtype = 'assignmentold'; } - ///construct SQL, using current offset to find the data of the next student + /// construct SQL, using current offset to find the data of the next student $course = $this->course; $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 { @@ -831,7 +829,8 @@ class assignment_base { '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.' '; }