mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Now using one cross-db solution to be able to
simulate the status boolean ins assignment submissions. MDL-8164 & MDL-10846
This commit is contained in:
parent
e8666d9abb
commit
c926560086
1 changed files with 4 additions and 2 deletions
|
@ -796,7 +796,8 @@ class assignment_base {
|
|||
|
||||
$select = 'SELECT u.id, u.firstname, u.lastname, u.picture,
|
||||
s.id AS submissionid, s.grade, s.submissioncomment,
|
||||
s.timemodified, s.timemarked ';
|
||||
s.timemodified, s.timemarked,
|
||||
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ';
|
||||
$sql = 'FROM '.$CFG->prefix.'user u '.
|
||||
'LEFT JOIN '.$CFG->prefix.'assignment_submissions s ON u.id = s.userid
|
||||
AND s.assignment = '.$this->assignment->id.' '.
|
||||
|
@ -1121,7 +1122,8 @@ class assignment_base {
|
|||
|
||||
$select = 'SELECT u.id, u.firstname, u.lastname, u.picture,
|
||||
s.id AS submissionid, s.grade, s.submissioncomment,
|
||||
s.timemodified, s.timemarked ';
|
||||
s.timemodified, s.timemarked,
|
||||
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ';
|
||||
$sql = 'FROM '.$CFG->prefix.'user u '.
|
||||
'LEFT JOIN '.$CFG->prefix.'assignment_submissions s ON u.id = s.userid
|
||||
AND s.assignment = '.$this->assignment->id.' '.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue