Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…hemelryk/moodle into MOODLE_20_STABLE
  • Loading branch information...
commit 07511dbe6df6e1cd356d2bed976c99d8a8d6050b 2 parents df70dfe + f285581
@stronk7 stronk7 authored
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 07511db

Please sign in to comment.
Something went wrong with that request. Please try again.