mirror of
https://github.com/moodle/moodle.git
synced 2025-04-03 23:42:39 +02:00
MDL-73642 mod_assign: Disable draft option if submission already made
This commit is contained in:
parent
cb6dc699b8
commit
f23463f8d6
@ -127,6 +127,9 @@ class mod_assign_mod_form extends moodleform_mod {
|
||||
$name = get_string('submissiondrafts', 'assign');
|
||||
$mform->addElement('selectyesno', 'submissiondrafts', $name);
|
||||
$mform->addHelpButton('submissiondrafts', 'submissiondrafts', 'assign');
|
||||
if ($assignment->has_submissions_or_grades()) {
|
||||
$mform->freeze('submissiondrafts');
|
||||
}
|
||||
|
||||
$name = get_string('requiresubmissionstatement', 'assign');
|
||||
$mform->addElement('selectyesno', 'requiresubmissionstatement', $name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user