|
Will this be fixed soon? This should not be minor priority, it should be at least major. The Random-Short Answer Matching question type is currently completely broken on the latest cvs of the Moodle 1.9 stable branch.
Thanks for the code Paul-Andre, it does temporarily fix the issue for us. This question type is completely broken without the patch. Thank you for the patch Paul...even though it doesn't fix everything...at least it works now if the questions are in the correct category. However, there are some major problems.
When creating the question, you select a category and then select how many questions to check for. If you have all your questions in subcategories of the category selected, the check will fail...even though the question will draw from those subcategories. Tim,
I just tested it and looks like it works properly now. Thanks for the quick fix! Check this new related bug... http://tracker.moodle.org/browse/MDL-15433
Tested and verified. Closing.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We replaced the following code ( lines 53-57 of file /moodle/...edit_randomsamatch_form.php) :
if (isset($data['usecurrentcat'])){ $category = $data['category']; }else{ $category = $data['categorymoveto']; }
By the following:
if (!isset($data['usecurrentcat']) && isset($data['categorymoveto'])) { $category = $data['categorymoveto']; } } else { $category = $data['category']; } }
Paul-André Chassé