MDL-5262 - PHP notice when sorting on R% coloumn in the Item analysis report - I adopted the simple solution of stopping people sorting on that column, since it is the same as sorting on rcount, I think.
This commit is contained in:
@@ -87,8 +87,8 @@ class quiz_report extends quiz_default_report {
|
||||
$sql = 'SELECT qa.* FROM '.$CFG->prefix.'quiz_attempts qa, '.$CFG->prefix.'user u '.$groupmembers.
|
||||
'WHERE u.id = qa.userid AND qa.quiz = '.$quiz->id.' AND qa.preview = 0 AND ( qa.sumgrades >= '.$scorelimit.' ) '.$groupwhere;
|
||||
|
||||
// ^^^^^^ es posible seleccionar aqu� TODOS los quizzes, como quiere Jussi,
|
||||
// pero habr�a que llevar la cuenta ed cada quiz para restaura las preguntas (quizquestions, states)
|
||||
// ^^^^^^ es posible seleccionar aqu TODOS los quizzes, como quiere Jussi,
|
||||
// pero haba que llevar la cuenta ed cada quiz para restaura las preguntas (quizquestions, states)
|
||||
|
||||
/// Fetch the attempts
|
||||
$attempts = get_records_sql($sql);
|
||||
@@ -244,6 +244,7 @@ class quiz_report extends quiz_default_report {
|
||||
$table->define_baseurl($CFG->wwwroot.'/mod/quiz/report.php?q='.$quiz->id.'&mode=analysis');
|
||||
|
||||
$table->sortable(true);
|
||||
$table->no_sorting('rpercent');
|
||||
$table->collapsible(true);
|
||||
$table->initialbars(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user