Permalink
Browse files

MDL-27638 Removed buggy status line from query as it is being calcula…

…ted in php anyway
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed May 31, 2011
1 parent da63c93 commit f2855813c726fdedcf3c29f9512166ae7297bb92
Showing with 2 additions and 4 deletions.
  1. +2 −4 mod/assignment/lib.php
View
@@ -971,8 +971,7 @@ function display_submission($offset=-1,$userid =-1, $display=true) {
$userfields = user_picture::fields('u', array('lastaccess'));
$select = "SELECT $userfields,
s.id AS submissionid, s.grade, s.submissioncomment,
- s.timemodified, s.timemarked,
- COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ";
+ s.timemodified, s.timemarked ";
$sql = 'FROM {user} u '.
'LEFT JOIN {assignment_submissions} s ON u.id = s.userid
AND s.assignment = '.$this->assignment->id.' '.
@@ -1285,8 +1284,7 @@ function display_submissions($message='') {
if (!empty($users)) {
$select = "SELECT $ufields,
s.id AS submissionid, s.grade, s.submissioncomment,
- s.timemodified, s.timemarked,
- COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ";
+ s.timemodified, s.timemarked ";
$sql = 'FROM {user} u '.
'LEFT JOIN {assignment_submissions} s ON u.id = s.userid
AND s.assignment = '.$this->assignment->id.' '.

0 comments on commit f285581

Please sign in to comment.