MDL-3030 mod_quiz: fix training whitespace
This commit is contained in:
@@ -194,7 +194,7 @@ class quizaccess_openclosedate_testcase extends basic_testcase {
|
||||
$quizobj = new quiz($quiz, $cm, null);
|
||||
$attempt = new stdClass();
|
||||
$attempt->preview = 0;
|
||||
|
||||
|
||||
$rule = new quizaccess_openclosedate($quizobj, 20000);
|
||||
$this->assertFalse($rule->prevent_access());
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class backup_quiz_activity_structure_step extends backup_questions_activity_stru
|
||||
|
||||
// Define each element separated
|
||||
$quiz = new backup_nested_element('quiz', array('id'), array(
|
||||
'name', 'intro', 'introformat', 'timeopen', 'timeclose', 'timelimit',
|
||||
'name', 'intro', 'introformat', 'timeopen', 'timeclose', 'timelimit',
|
||||
'overduehandling', 'graceperiod', 'preferredbehaviour', 'attempts_number',
|
||||
'attemptonlast', 'grademethod', 'decimalpoints', 'questiondecimalpoints',
|
||||
'reviewattempt', 'reviewcorrectness', 'reviewmarks',
|
||||
|
||||
@@ -96,7 +96,7 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
quiz_get_overdue_handling_options());
|
||||
$mform->setAdvanced('overduehandling', $quizconfig->overduehandling_adv);
|
||||
$mform->setDefault('overduehandling', $quizconfig->overduehandling);
|
||||
// TODO Formslib does OR logic on disableif, and we need AND logic here.
|
||||
// TODO Formslib does OR logic on disableif, and we need AND logic here.
|
||||
// $mform->disabledIf('overduehandling', 'timelimit', 'eq', 0);
|
||||
// $mform->disabledIf('overduehandling', 'timeclose', 'eq', 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user