Index: openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl 12 Jun 2006 02:49:51 -0000 1.6 +++ openacs-4/packages/assessment/www/asm-admin/item-add-display-cb.tcl 15 May 2007 20:14:17 -0000 1.7 @@ -41,7 +41,10 @@ set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id] set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id] set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id] - db_dml update_section_in_assessment {} + as::section::update_section_in_assessment\ + -old_section_id $section_id \ + -new_section_id $new_section_id \ + -new_assessment_rev_id $new_assessment_rev_id set old_item_id $as_item_id if {![db_0or1row item_display {}] || $object_type != "as_item_display_cb"} { @@ -51,7 +54,7 @@ -choice_label_orientation $label_orientation \ -sort_order_type $order_type \ -item_answer_alignment $answer_alignment] - + if {![info exists object_type]} { # first item display mapped as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel @@ -130,7 +133,10 @@ set new_assessment_rev_id [as::assessment::new_revision -assessment_id $assessment_id] set section_id [as::section::latest -section_id $section_id -assessment_rev_id $new_assessment_rev_id] set new_section_id [as::section::new_revision -section_id $section_id -assessment_id $assessment_id] - db_dml update_section_in_assessment {} + as::section::update_section_in_assessment\ + -old_section_id $section_id \ + -new_section_id $new_section_id \ + -new_assessment_rev_id $new_assessment_rev_id set old_item_id $as_item_id if {![db_0or1row item_display {}] || $object_type != "as_item_display_cb"} { @@ -140,7 +146,7 @@ -choice_label_orientation $label_orientation \ -sort_order_type $order_type \ -item_answer_alignment $answer_alignment] - + if {![info exists object_type]} { # first item display mapped as::item_rels::new -item_rev_id $as_item_id -target_rev_id $as_item_display_id -type as_item_display_rel