From Martin Dougiamas (martin at moodle.com) Wednesday, 16 July 2003, 10:12 AM:
Careful, the database fields are done in a slightly weird way (different to other question types ...) I remember confusing myself while going through the code but it made sense eventually.
When I was testing the numbers I put in seemed to have the right effect on the quizzes so I'm not sure what the bug is that you're seeing.
From Eloy Lafuente (stronk7 at moodle.org) Wednesday, 16 July 2003, 04:22 PM:
I've created a quiz in Demo103 course. It has two numerical questions. The PI correct answer is 3.141592 with an allowed error of 0.141592. It seems to be correctly stored in DB (max and min values). But the add answer I've typed is 4 and the allowed error I've typed is 2. In DB, the max, min (quiz_numerical) and answer (quiz_answers) values are stored incorrectly.
I've make an attempt to the quiz, too and I've entered a 1 answer in the add question. It has been gradded 100% and it's incorrect !! (due to values in DB) I suppose.
Take a look. Eloy.
From Eloy Lafuente (stronk7 at moodle.org) Thursday, 17 July 2003, 02:49 AM:
I've done a lot of tests and now everything seems to work fine with every question definition.
I think that there is no risk committing it to cvs, so I'll do it tomorrow if there is no any message avoiding that !!
I think that the bug is a html-render problem.
From Martin Dougiamas (martin at moodle.com) Thursday, 17 July 2003, 09:51 AM:
Cool bananas - thanks!
From Eloy Lafuente (stronk7 at moodle.org) Friday, 18 July 2003, 06:12 AM:
Now in cvs a sligthy modified form to avoid the bug.
From Henrik Kaipe (kaipe at users.sourceforge.net) Friday, 18 July 2003, 05:40 PM:
My impression is that this was a browser-dependent bug.
Did you use Safari 1.0?
I haven't heard about that one before. I wonder if it could have been tricked by my habit of ending the input tags with />.
From Eloy Lafuente (stronk7 at moodle.org) Friday, 18 July 2003, 05:57 PM:
Yes. I think it's a Safari bug too !!
The problem was that the first field (correct) has a align right and it was showed on the right (swapped with the acceptederror field).
Apple has to do some improvements...