MDL-20296 correcting the display (the ||| separator was visible) better test line 431

This commit is contained in:
Pierre Pichet
2010-06-12 02:55:38 +00:00
parent 38a79f198e
commit 46a8f8ee8f
+1 -1
View File
@@ -428,7 +428,7 @@ 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[''] != ''){
if (isset($state->responses['']) && $state->responses[''] != '' && !isset($state->responses['answer'])){
$this->split_old_answer($state->responses[''], $question->options->units, $state->responses['answer'] ,$state->responses['unit'] );
}
if (isset($state->responses['answer']) && $state->responses['answer']!='') {