MDL-50525 mod_assign: Moved preventsubmissionnotingroup
[moodle.git] / mod / assign / settings.php
index d13bd95..4b1b4bc 100644 (file)
@@ -175,6 +175,16 @@ if ($ADMIN->fulltree) {
     $setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
     $settings->add($setting);
 
+    $name = new lang_string('preventsubmissionnotingroup', 'mod_assign');
+    $description = new lang_string('preventsubmissionnotingroup_help', 'mod_assign');
+    $setting = new admin_setting_configcheckbox('assign/preventsubmissionnotingroup',
+        $name,
+        $description,
+        0);
+    $setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
+    $setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
+    $settings->add($setting);
+
     $name = new lang_string('requireallteammemberssubmit', 'mod_assign');
     $description = new lang_string('requireallteammemberssubmit_help', 'mod_assign');
     $setting = new admin_setting_configcheckbox('assign/requireallteammemberssubmit',
@@ -252,16 +262,6 @@ if ($ADMIN->fulltree) {
     $setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
     $setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
     $settings->add($setting);
-
-    $name = new lang_string('preventsubmissionnotingroup', 'mod_assign');
-    $description = new lang_string('preventsubmissionnotingroup_help', 'mod_assign');
-    $setting = new admin_setting_configcheckbox('assign/preventsubmissionnotingroup',
-                                                    $name,
-                                                    $description,
-                                                    0);
-    $setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
-    $setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
-    $settings->add($setting);
 }
 
 $ADMIN->add('modassignfolder', $settings);