From d01b47381b79eef698a7a050cf5d060ac552a45f Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 16 Oct 2007 21:26:46 +0000 Subject: [PATCH] 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. Backported from MOODLE_19_STABLE. --- mod/quiz/report/analysis/report.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/quiz/report/analysis/report.php b/mod/quiz/report/analysis/report.php index a6a5be07138..805014787d1 100644 --- a/mod/quiz/report/analysis/report.php +++ b/mod/quiz/report/analysis/report.php @@ -87,8 +87,8 @@ class quiz_report extends quiz_default_report { } $sql .= ' WHERE qa.quiz = '.$quiz->id. // ULPGC ecastro ' AND ( qa.sumgrades >= '.$scorelimit.' ) '; - // ^^^^^^ 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 habra 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);