From 67809990f699b9882424cb81fa6afabd078a3eab Mon Sep 17 00:00:00 2001 From: Davo Smith Date: Wed, 13 Dec 2017 16:38:24 +0000 Subject: [PATCH] MDL-63773 mod_assign: switch instance form to hideIf --- mod/assign/mod_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/mod_form.php b/mod/assign/mod_form.php index 4cfc9413b34..ffb7127becb 100644 --- a/mod/assign/mod_form.php +++ b/mod/assign/mod_form.php @@ -131,7 +131,7 @@ class mod_assign_mod_form extends moodleform_mod { $options += array_combine(range(1, 30), range(1, 30)); $mform->addElement('select', 'maxattempts', get_string('maxattempts', 'mod_assign'), $options); $mform->addHelpButton('maxattempts', 'maxattempts', 'assign'); - $mform->disabledIf('maxattempts', 'attemptreopenmethod', 'eq', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE); + $mform->hideIf('maxattempts', 'attemptreopenmethod', 'eq', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE); $mform->addElement('header', 'groupsubmissionsettings', get_string('groupsubmissionsettings', 'assign')); @@ -207,7 +207,7 @@ class mod_assign_mod_form extends moodleform_mod { $name = get_string('markingallocation', 'assign'); $mform->addElement('selectyesno', 'markingallocation', $name); $mform->addHelpButton('markingallocation', 'markingallocation', 'assign'); - $mform->disabledIf('markingallocation', 'markingworkflow', 'eq', 0); + $mform->hideIf('markingallocation', 'markingworkflow', 'eq', 0); $this->standard_coursemodule_elements(); $this->apply_admin_defaults(); -- 2.11.4.GIT