Details
Description
Course > Questions > Create New Question: Random Short Answer (you previously created 2 short answer questions in the same category)
Save Changes
=> error message is displayed: "There are no short answer questions in the category that you chose ''. Choose a different category, make some questions in this category."
Issue Links
| This issue blocks: | ||||
| MDL-14928 | Adding random questions from a category with an apostrophe in the name does not work |
|
|
|
| This issue is blocked by: | ||||
| MDL-15433 | Random Short Answer Matching question type draws short answer questions from subcategories, but fails the in the creation process to check subcategories. |
|
|
|
At the Universite de Sherbrooke, we had that problem. We made a temporary fix into the source. The file '/moodle/question/type/randomsamatch/edit_randomsamatch_form.php' was modified as follow:
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é