Skip to content

Commit

Permalink
MDL-37707 mod_assign: Prevent user from switching to and from team su…
Browse files Browse the repository at this point in the history
…bmissions
  • Loading branch information
pavelsokolov authored and Frederic Massart committed Sep 24, 2014
1 parent 272fec3 commit 5ae56c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/assign/mod_form.php
Expand Up @@ -134,6 +134,9 @@ public function definition() {
$name = get_string('teamsubmission', 'assign');
$mform->addElement('selectyesno', 'teamsubmission', $name);
$mform->addHelpButton('teamsubmission', 'teamsubmission', 'assign');
if ($assignment->has_submissions_or_grades()) {
$mform->freeze('teamsubmission');
}

$name = get_string('requireallteammemberssubmit', 'assign');
$mform->addElement('selectyesno', 'requireallteammemberssubmit', $name);
Expand Down

0 comments on commit 5ae56c6

Please sign in to comment.