]> git.mjollnir.org Git - moodle.git/commit
MDL-11398 - Random questions sometimes ended up with names different from the cateogr...
authortjhunt <tjhunt>
Wed, 26 Sep 2007 16:10:38 +0000 (16:10 +0000)
committertjhunt <tjhunt>
Wed, 26 Sep 2007 16:10:38 +0000 (16:10 +0000)
commitf59dba84970e43ae75abde8a82a4c6f1e70e459f
treecdf10e41b1609216f4ee204fd2b848c8ef1ed907
parentd2bd42498cfb929a96b7258abcb663d95076c11b
MDL-11398 - Random questions sometimes ended up with names different from the cateogry they were actually picking from. Also, the same random questoin could be used in more than one quiz, in which case editing that question would change two quizzes unexpectedly. The fix is:

* Don't let the user set the name for random questions.
* Instead force the name to be "Random (catname)" (localised) whever the question is created or saved.
* When a category is renamed, rename all the random questions in it.
* Remove the restriction that Jamie seems to have added in 1.9 that was preventing the category of random questions from being edited.
mod/quiz/edit.php
question/category_class.php
question/type/questiontype.php
question/type/random/edit_random_form.php
question/type/random/questiontype.php