MDL-50198 quiz: password should be non-advanced by default
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 11 May 2015 14:44:46 +0000 (15:44 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 11 May 2015 15:19:30 +0000 (16:19 +0100)
So the Extra restrictions form section is not empty by default.

mod/quiz/settings.php

index d84652a..aa246db 100644 (file)
@@ -183,7 +183,7 @@ if ($ADMIN->fulltree) {
     // Password.
     $quizsettings->add(new admin_setting_configtext_with_advanced('quiz/password',
             get_string('requirepassword', 'quiz'), get_string('configrequirepassword', 'quiz'),
-            array('value' => '', 'adv' => true), PARAM_TEXT));
+            array('value' => '', 'adv' => false), PARAM_TEXT));
 
     // IP restrictions.
     $quizsettings->add(new admin_setting_configtext_with_advanced('quiz/subnet',