Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Component/s: Quiz
-
Labels:None
-
Environment:All
-
Affected Branches:MOODLE_16_STABLE
-
Fixed Branches:MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
Description
On report.php analysis page, if I click on many of the column headers to sort by them, I get the following messages. It only happens with some columns.:
Notice: Undefined index: answers in /home/moodtest/public_html/mod/quiz/report/analysis/report.php on line 293
Notice: Undefined index: answers in /home/moodtest/public_html/mod/quiz/report/analysis/report.php on line 293
Notice: Undefined index: answers in /home/moodtest/public_html/mod/quiz/report/analysis/report.php on line 293
Notice: Undefined index: answers in /home/moodtest/public_html/mod/quiz/report/analysis/report.php on line 293
I am looking specifically at this page, for example:
http://test.moodle.com/mod/quiz/report.php?q=4&mode=analysis&tsort=rpercent
From Gustav Delius (gwd2 at york.ac.uk) Friday, 21 April 2006, 04:22 AM:
Nicole, php notices are not really a problem, they are just an aid to developers alerting them to parts of the code that could do with some cleanup. I have therefore reduced the priority of this. Nevertheless please continue to report notices that you find.
From Martin Dougiamas (martin at moodle.com) Friday, 21 April 2006, 09:46 AM:
Will you fix it, Delius?
From Martin Dougiamas (martin at moodle.com) Friday, 21 April 2006, 09:47 AM:
Sorry if that sounded rude, I'm in assign a hundred bugs mode
From Gustav Delius (gwd2 at york.ac.uk) Friday, 21 April 2006, 03:10 PM:
Martin, I don't mind short bug tracker entries, but I wish the bugtracker would use real names. I prefer to be called Gustav rather than Delius. Maybe the Google summer of code will finally give us a decent bugtracker.
I don't know if I will get around to fixing this before handing the quiz module over to the OU. There are higher priority bugs around.
From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Monday, 1 May 2006, 04:56 PM:
This is because some columns have wrong names. To correct most of the problems do the following search/replace (NOTE: all single quotes MUST be included in both search and replace strings, for instance if you try to replace all sd with qsd without the quotes, you will break the file !!)
change all occurences of 'discrimination_coeff' to 'disc_coeff' (3 occurences)
change all occurences of 'discrimination_index' to 'disc_index' (3 occurences)
change all occurences of 'sd' to 'qsd' (3 occurences)
change all occurences of 'answers' to 'responses' (1 occurence only)
This will correct all problems except the R% one, because I was unable to find the matching name for the rpercent column in $row.
I will study the problem.
As Gustav said, it's only a notice so not harmfull, and my corrections allow sorting to work on most columns wich is already a progress !
From Gustav Delius (gwd2 at york.ac.uk) Tuesday, 2 May 2006, 04:38 PM:
Thanks Jean-Michel. I have committed those changes. I have made you the owner of this bug.
From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Tuesday, 2 May 2006, 05:59 PM:
Wonderfull ! I am owning more and more bugs, maybe the begining of a braider career !