}
}
$datasetdefs = $this->get_dataset_definitions($question->id, $question->dataset);
- // echo "<p> datasetdefs save <pre>";print_r($datasetdefs);echo"</pre></p>";
// Handle adding and removing of dataset items
$i = 1;
ksort($question->definition);
// Report any problems.
//convert to calculated
if(!empty($question->makecopy) && !empty($question->convert) ){
- // echo "<p> question save <pre>";print_r($question);echo"</pre></p>";
if (!$DB->set_field('question', 'qtype', 'calculated', array('id'=> $question->id))) {
print_error('cannotupdateitem', 'question');
}
$delimiter = '';
// $answers = $question->options->answers;
- // echo "<p>comments header answers <pre>";print_r($answers);echo"</pre></p>";
foreach ($answers as $key => $answer) {
/* if (is_string($answer)) {