Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.5
-
Fix Version/s: STABLE backlog
-
Component/s: Questions
-
Labels:None
-
Environment:LAMP
-
Database:MySQL
-
Difficulty:Moderate
-
Affected Branches:MOODLE_19_STABLE
Description
Create a Quizz
Add a Random Short-Answer Matching question (I had few short answer question)
Some php error message appears when preview the question and preview the quizz (check both of them)
Once all looks normal transfert all hard coded string into lang
If you can also have a look to display.html and refactor it a bit, all good
I had a better look, here is the situation:
For the fix: I'm going to display a Moodle error message instead of the php warnings.
Code related issue: 'Random Short-Answer Matching question' extends 'Matching question'. I tested the 'Matching question' and if they are quite similar, I'm not sure it was the best thing to extend.
- when none of the selected random short answer questions have a question text => some notice/warning are displayed
- when only one of the selected random short answer question has a question text => this question is displayed and you can choose the answer from this question and also the other selected but none displayed random short answer. This is obviously a wrong behavior but cannot be fixed as many people could have found this bug friendly and use it this way.
- when all the selected random short answer questions have a question text => works the way it should (http://docs.moodle.org/en/Random_Short-Answer_Matching_question_type)
For the fix: I'm going to display a Moodle error message instead of the php warnings. Code related issue: 'Random Short-Answer Matching question' extends 'Matching question'. I tested the 'Matching question' and if they are quite similar, I'm not sure it was the best thing to extend.