Skip to content

Commit

Permalink
MDL-20296 correcting the display (the ||| separator was visible) bett…
Browse files Browse the repository at this point in the history
…er test line 431
  • Loading branch information
ppichet committed Jun 12, 2010
1 parent 38a79f1 commit 46a8f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/numerical/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
// 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']!='') {
Expand Down

0 comments on commit 46a8f8e

Please sign in to comment.