Browse files

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

…ted in php anyway
  • Loading branch information...
1 parent 16b5541 commit e455bdb3d79de1d3b5f81fd4dfdc161c8111745e Sam Hemelryk committed May 31, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 mod/assignment/lib.php
View
6 mod/assignment/lib.php
@@ -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 e455bdb

Please sign in to comment.