mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Deleting core uses of sql_isnull(). MDL-12970 ; merged from 19_STABLE
This commit is contained in:
parent
04150e0886
commit
044197030b
@ -387,7 +387,7 @@ class quiz_report extends quiz_default_report {
|
||||
$select .= ', grade ';
|
||||
$from .= ' LEFT JOIN '.$CFG->prefix.'question_sessions qns ON qns.attemptid = qa.id '.
|
||||
'LEFT JOIN '.$CFG->prefix.'question_states qs ON qs.id = qns.newgraded ';
|
||||
$where .= ' AND ('.sql_isnull('qns.questionid').' OR qns.questionid = '.$qid.')';
|
||||
$where .= ' AND (qns.questionid IS NULL OR qns.questionid = '.$qid.')';
|
||||
$newsort[] = 'grade '.(strpos($sortpart, 'ASC')? 'ASC' : 'DESC');
|
||||
$questionsort = true;
|
||||
}
|
||||
@ -668,4 +668,4 @@ document.getElementById("noscriptmenuaction").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user