Testing with Phing - BT#821

skala
Guillaume Viguier 15 years ago
parent 588908ac46
commit a84019744f
  1. 7
      main/survey/survey.lib.php

@ -1801,7 +1801,7 @@ class ch_multiplechoice extends survey_question
*/
function render_question($form_content, $answers=array())
{
$question = new yesno();
$question = new ch_yesno();
$question->render_question($form_content, $answers);
}
}
@ -1904,7 +1904,7 @@ class ch_personality extends survey_question
*/
function render_question($form_content, $answers=array())
{
$question = new yesno();
$question = new ch_yesno();
$question->render_question($form_content, $answers);
}
}
@ -2737,7 +2737,8 @@ class SurveyUtil {
$second_parameter[] = $all_answers[$question['question_id']][0]['option_id'];
}
}
$display = new $question['type'];
$ch_type = 'ch_'.$question['type'];
$display = new $ch_type;
$display->render_question($question, $second_parameter);
}
}

Loading…
Cancel
Save