MDL-20636 Minor fixes to the truefalse and match editing forms.

This commit is contained in:
Tim Hunt
2011-03-10 19:09:42 +00:00
parent 07f8858406
commit 42e6506ebe
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ class qtype_match_edit_form extends question_edit_form {
function get_per_answer_fields($mform, $label, $gradeoptions, &$repeatedoptions, &$answersoption) {
$repeated = array();
$repeated[] = $mform->createElement('header', 'answerhdr', $label);
$repeated[] = $mform->createElement('editor', 'subquestions', get_string('question', 'question'), array('rows'=>3), $this->editoroptions);
$repeated[] = $mform->createElement('editor', 'subquestions', get_string('question'), array('rows'=>40), $this->editoroptions);
$repeated[] = $mform->createElement('text', 'subanswers', get_string('answer', 'question'), array('size'=>50));
$repeatedoptions['subquestions']['type'] = PARAM_RAW;
$repeatedoptions['subanswers']['type'] = PARAM_TEXT;
@@ -75,7 +75,7 @@ class qtype_match_edit_form extends question_edit_form {
return $question;
}
$question->shuffleanswers = $question->options->shuffleanswers;
$question->shuffleanswers = $question->options->shuffleanswers;
$key = 0;
foreach ($question->options->subquestions as $subquestion){