MDL-37998 quiz settings: disableif rules should account for overrides.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Sun, 14 Sep 2014 13:14:11 +0000 (14:14 +0100)
committerDan Poltawski <dan@moodle.com>
Mon, 22 Sep 2014 15:23:38 +0000 (16:23 +0100)
commit358f31672bd3b48488853ad26ad8dc8b4d27ff4c
tree03934aef496cc4f1c417a82f0e1e556a2db8b562
parent546acfbf67ea99fb08a141a4e7eaf3985cedb5bf
MDL-37998 quiz settings: disableif rules should account for overrides.

Some form fields are disabled if only one attempt is allowed. However,
there may be an override allowing some students more attempts. We need
to account for that possiblity when setting up the disabled if rules.

Note the disabledIf is good for usability on this complex form, which is
why I don't just want to get rid of them.
mod/quiz/mod_form.php
mod/quiz/tests/behat/settings_form_fields_disableif.feature [new file with mode: 0644]