Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-27638-MOODLE_19_STABLE' of git://github.com/sam…

…hemelryk/moodle into MOODLE_19_STABLE
  • Loading branch information...
commit 6cc32cbb9e28cebd0813b82a7d05174ae90e259a 2 parents d98e3d6 + 3b246ac
@stronk7 stronk7 authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 mod/assignment/lib.php
View
6 mod/assignment/lib.php
@@ -838,8 +838,7 @@ function display_submission($extra_javascript = '') {
if ($users) {
$select = 'SELECT u.id, u.firstname, u.lastname, u.picture, u.imagealt,
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 '.$CFG->prefix.'user u '.
'LEFT JOIN '.$CFG->prefix.'assignment_submissions s ON u.id = s.userid
AND s.assignment = '.$this->assignment->id.' '.
@@ -1167,8 +1166,7 @@ function display_submissions($message='') {
$select = 'SELECT u.id, u.firstname, u.lastname, u.picture, u.imagealt,
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 '.$CFG->prefix.'user u '.
'LEFT JOIN '.$CFG->prefix.'assignment_submissions s ON u.id = s.userid
AND s.assignment = '.$this->assignment->id.' '.
Please sign in to comment.
Something went wrong with that request. Please try again.