From b11e24ba7d217af3893413ad7d9382998a17f9c0 Mon Sep 17 00:00:00 2001 From: Andrew Hancox Date: Wed, 1 Jul 2015 13:16:23 +0100 Subject: [PATCH] MDL-50525 mod_assign: Moved preventsubmissionnotingroup Moved preventsubmissionnotingroup to between teamsubmission and requireallteammemberssubmit to keep all settings related to group submissions together. --- mod/assign/settings.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mod/assign/settings.php b/mod/assign/settings.php index d13bd95e7a3..4b1b4bc7a0f 100644 --- a/mod/assign/settings.php +++ b/mod/assign/settings.php @@ -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);