mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-20296 correcting Correct response display
This commit is contained in:
parent
305664e9bc
commit
960ac99bf6
1 changed files with 0 additions and 2 deletions
|
@ -730,10 +730,8 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
||||||
function get_correct_responses(&$question, &$state) {
|
function get_correct_responses(&$question, &$state) {
|
||||||
$correct = parent::get_correct_responses($question, $state);
|
$correct = parent::get_correct_responses($question, $state);
|
||||||
$unit = $this->get_default_numerical_unit($question);
|
$unit = $this->get_default_numerical_unit($question);
|
||||||
$correct['answer']= $correct[''];
|
|
||||||
if (isset($correct['']) && $correct[''] != '*' && $unit) {
|
if (isset($correct['']) && $correct[''] != '*' && $unit) {
|
||||||
$correct[''] .= ' '.$unit->unit;
|
$correct[''] .= ' '.$unit->unit;
|
||||||
$correct['unit']= $unit->unit;
|
|
||||||
}
|
}
|
||||||
return $correct;
|
return $correct;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue