MDL-39164 GIFT, Blackboard and Examview import of essay questions broken

This commit is contained in:
Jean-Michel Vedrine
2013-04-18 17:36:18 +02:00
parent 3a8c4380c0
commit cdcda6a0b4
4 changed files with 5 additions and 0 deletions
@@ -150,6 +150,7 @@ class qformat_blackboard_six_pool extends qformat_blackboard_six_base {
$answer = $this->getpath($thisquestion,
array('#', 'ANSWER', 0, '#', 'TEXT', 0, '#'), '', true);
$question->graderinfo = $this->cleaned_text_field($answer);
$question->responsetemplate = $this->text_field('');
$question->feedback = '';
$question->responseformat = 'editor';
$question->responsefieldlines = 15;
@@ -781,6 +781,7 @@ class qformat_blackboard_six_qti extends qformat_blackboard_six_base {
$question->responseformat = 'editor';
$question->responsefieldlines = 15;
$question->attachments = 0;
$question->responsetemplate = $this->text_field('');
$questions[]=$question;
}
+1
View File
@@ -292,6 +292,7 @@ class qformat_examview extends qformat_based_on_xml {
protected function parse_es($qrec, $question) {
$feedback = trim($this->unxmlise($qrec['answer'][0]['#']));
$question->graderinfo = $this->text_field($feedback);
$question->responsetemplate = $this->text_field('');
$question->feedback = $feedback;
$question->responseformat = 'editor';
$question->responsefieldlines = 15;
+2
View File
@@ -332,6 +332,8 @@ class qformat_gift extends qformat_default {
$question->attachments = 0;
$question->graderinfo = array(
'text' => '', 'format' => FORMAT_HTML, 'files' => array());
$question->responsetemplate = array(
'text' => '', 'format' => FORMAT_HTML);
return $question;
case 'multichoice':