Found a bug

Found a bug

by nelly hung -
Number of replies: 2

Hello, sorry my english is'nt good...

Well, i don´t know it's a bug because i downloaded Moodle Beta 1.2 two weeks ago...

Inside graph.php file, when we use case "question.png" i found: 

switch ($type) {

     case "question.png":
     $question = get_record("survey_questions", "id", $sid);

it is'nt $sid, it's $qid because when $sid it is used only when we need referer users...

Bye...

Average of ratings: -
In reply to nelly hung

Re: Found a bug

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Thanks for posting! ... however in my copy it is correctly $qid already. 
 
   cvs:/moodle/mod/survey/graph.php

Have you been editing that file in your installation?
In reply to Martin Dougiamas

Re: Found a bug

by nelly hung -

Hello, well i saw this in moodle.org. i reviewed but i don't know how to use...i'll try...

Thanks...