Merge branch 'MDL-37707-master-fixup' of https://github.com/FMCorz/moodle

This commit is contained in:
Dan Poltawski 2014-10-02 09:48:25 +01:00
commit 7e704313d2

View File

@ -155,6 +155,9 @@ class mod_assign_mod_form extends moodleform_mod {
$mform->addElement('select', 'teamsubmissiongroupingid', $name, $options);
$mform->addHelpButton('teamsubmissiongroupingid', 'teamsubmissiongroupingid', 'assign');
$mform->disabledIf('teamsubmissiongroupingid', 'teamsubmission', 'eq', 0);
if ($assignment->has_submissions_or_grades()) {
$mform->freeze('teamsubmissiongroupingid');
}
$mform->addElement('header', 'notifications', get_string('notifications', 'assign'));