mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Added essay question to list of excluded types for random questions
Also fixed type on previous commit
This commit is contained in:
parent
5e468d30e1
commit
0e2057cb17
@ -7,7 +7,7 @@
|
||||
/// QUESTION TYPE CLASS //////////////////
|
||||
class quiz_random_qtype extends quiz_default_questiontype {
|
||||
|
||||
var $excludedtypes = array(RANDOM, RANDOMSAMATCH);
|
||||
var $excludedtypes = array(RANDOM, RANDOMSAMATCH, ESSAY);
|
||||
|
||||
// Carries questions available as randoms sorted by category
|
||||
// This array is used when needed only
|
||||
@ -60,7 +60,7 @@ class quiz_random_qtype extends quiz_default_questiontype {
|
||||
AND id NOT IN ($cmoptions->questionsinuse)
|
||||
AND qtype NOT IN ($excludedtypes)");
|
||||
$this->catrandoms[$question->category][$question->questiontext] =
|
||||
draw_rand_array(catrandoms, count($catrandoms)); // from bug 1889
|
||||
draw_rand_array($catrandoms, count($catrandoms)); // from bug 1889
|
||||
}
|
||||
|
||||
while ($wrappedquestion =
|
||||
|
Loading…
x
Reference in New Issue
Block a user