Merge branch 'MDL-58047-34-sortbysubmission' of https://github.com/roperto/moodle

This commit is contained in:
David Monllao 2017-11-02 16:57:03 +01:00
commit bb2071ca17

View File

@ -138,7 +138,7 @@ class assign_grading_table extends table_sql implements renderable {
$fields .= 's.status as status, ';
$fields .= 's.id as submissionid, ';
$fields .= 's.timecreated as firstsubmission, ';
$fields .= 's.timemodified as timesubmitted, ';
$fields .= "CASE WHEN status='submitted' THEN s.timemodified ELSE NULL END as timesubmitted, ";
$fields .= 's.attemptnumber as attemptnumber, ';
$fields .= 'g.id as gradeid, ';
$fields .= 'g.grade as grade, ';