--- new/question/format.php 2010-12-14 14:41:28.000000000 -0500 +++ old/question/format.php 2010-12-14 14:09:54.000000000 -0500 @@ -246,6 +246,14 @@ return false; } + // Since we are importing, let's set the name to something sane. + $fixedquestions = array(); + foreach ($questions as $question) { + $question->name = substr(strip_tags($question_text), 0, 255); + $fixedquestions[] = $question; + } + $questions = $fixedquestions; + // STAGE 2: Write data to database notify( get_string('importingquestions','quiz',$this->count_questions($questions)) );