Index: temp_moodle_dev/moodle/mod/choice/lib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/choice/lib.php,v diff -u -r1.1 -r1.2 --- temp_moodle_dev/moodle/mod/choice/lib.php 14 Nov 2008 06:29:50 -0000 1.1 +++ temp_moodle_dev/moodle/mod/choice/lib.php 18 Nov 2008 02:53:54 -0000 1.2 @@ -747,7 +747,7 @@ /** * LAMS Function - * This function clones an existing instance of Moodle quiz + * This function clones an existing instance of Moodle choice * replacing the course and the userid */ function choice_clone_instance($id, $sectionref, $courseid) { @@ -788,7 +788,7 @@ $cm->id = insert_record('course_modules', $cm); - + //copy the old choice's options and create new records for the new choice's options if ($options = get_records("choice_options", "choiceid", $existingchoice->old_id, "id")) { foreach ($options as $option) { $option->choiceid = $existingchoice->id; @@ -837,7 +837,7 @@ // escape text columns for saving into database $choice->name = addslashes($choice->name); - $choice->intro = addslashes($choice->intro); + $choice->text = addslashes($choice->text); if ( ! $choice->id = insert_record('choice', $choice) ) { return 0;