Index: temp_moodle_dev/moodle/mod/choice/lib.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -rb3d1ddc73f2a5b1ba9f930733d7ea4d8cd2e1dbc --- temp_moodle_dev/moodle/mod/choice/lib.php (.../lib.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/choice/lib.php (.../lib.php) (revision b3d1ddc73f2a5b1ba9f930733d7ea4d8cd2e1dbc) @@ -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;