mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-20296 correcting fill with correct display in preview
This commit is contained in:
parent
7328e94b30
commit
b79c7c289b
1 changed files with 3 additions and 1 deletions
|
@ -424,7 +424,9 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
|||
// before i.e. at left or after at rigth of the unit variants.
|
||||
$nameunit = "name=\"".$question->name_prefix."unit\"";
|
||||
$nameanswer = "name=\"".$question->name_prefix."answer\"";
|
||||
|
||||
if (isset($state->responses['']) && $state->responses[''] != ''){
|
||||
$this->split_old_answer($state->responses[''], $question->options->units, $state->responses['answer'] ,$state->responses['unit'] );
|
||||
}
|
||||
if (isset($state->responses['answer']) && $state->responses['answer']!='') {
|
||||
$valueanswer = ' value="'.s($state->responses['answer']).'" ';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue