Index: openacs-4/packages/assessment/tcl/as-item-type-mc-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-item-type-mc-procs.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/assessment/tcl/as-item-type-mc-procs.tcl 7 Jan 2005 16:10:44 -0000 1.11 +++ openacs-4/packages/assessment/tcl/as-item-type-mc-procs.tcl 19 Jan 2005 16:49:14 -0000 1.12 @@ -25,7 +25,7 @@ # Insert as_item_type_mc in the CR (and as_item_type_mc table) getting the revision_id (as_item_type_id) db_transaction { - set item_item_type_mc_id [content::item::new -parent_id $folder_id -content_type {as_item_type_mc} -name [exec uuidgen] -title $title ] + set item_item_type_mc_id [content::item::new -parent_id $folder_id -content_type {as_item_type_mc} -name [exec uuidgen]] set as_item_type_mc_id [content::revision::new \ -item_id $item_item_type_mc_id \ -content_type {as_item_type_mc} \ @@ -276,10 +276,12 @@ -type_id:required -session_id:required -as_item_id:required + -section_id:required -subject_id:required {-staff_id ""} {-response ""} {-max_points 0} + {-allow_overwrite_p t} } { @author Timo Hentschel (timo@timohentschel.de) @creation-date 2004-12-11 @@ -317,5 +319,5 @@ set points [expr round($max_points * $percent / 100)] - as::item_data::new -session_id $session_id -subject_id $subject_id -staff_id $staff_id -as_item_id $as_item_id -choice_answer $response -points $points + as::item_data::new -session_id $session_id -subject_id $subject_id -staff_id $staff_id -as_item_id $as_item_id -section_id $section_id -choice_answer $response -points $points -allow_overwrite_p $allow_overwrite_p }