MDL-32490 Offline assignment: do not display lateness information

This commit is contained in:
Henning Bostelmann
2012-04-25 02:42:04 +02:00
committed by Eloy Lafuente (stronk7)
parent b2313c434f
commit 72d890d2d2
3 changed files with 16 additions and 4 deletions
+4 -2
View File
@@ -55,8 +55,10 @@ class mod_assignment_mod_form extends moodleform_mod {
$ynoptions = array( 0 => get_string('no'), 1 => get_string('yes'));
$mform->addElement('select', 'preventlate', get_string('preventlate', 'assignment'), $ynoptions);
$mform->setDefault('preventlate', 0);
if ($assignmentinstance->supports_lateness()) {
$mform->addElement('select', 'preventlate', get_string('preventlate', 'assignment'), $ynoptions);
$mform->setDefault('preventlate', 0);
}
// hack to support pluggable assignment type titles
if (get_string_manager()->string_exists('type'.$type, 'assignment')) {