Fix bugs with GIFT import.
This commit is contained in:
@@ -181,6 +181,7 @@ class qformat_default {
|
||||
$question->image = "";
|
||||
$question->usecase = 0;
|
||||
$question->multiplier = array();
|
||||
$question->generalfeedback = '';
|
||||
|
||||
return $question;
|
||||
}
|
||||
|
||||
@@ -292,7 +292,10 @@ class qformat_gift extends qformat_default {
|
||||
}
|
||||
$question->fraction[$key] = $answer_weight;
|
||||
$question->feedback[$key] = $this->commentparser($answer); // commentparser also removes comment from $answer
|
||||
$question->answer[$key] = addslashes($this->escapedchar_post($answer));
|
||||
$question->answer[$key] = addslashes($this->escapedchar_post($answer));
|
||||
$question->correctfeedback = '';
|
||||
$question->partiallycorrectfeedback = '';
|
||||
$question->incorrectfeedback = '';
|
||||
} // end foreach answer
|
||||
|
||||
//$question->defaultgrade = 1;
|
||||
|
||||
Reference in New Issue
Block a user