Index: openacs-4/packages/dotlrn-ecommerce/lib/section.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/section.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 6 Jul 2005 05:03:23 -0000 1.6 +++ openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 6 Jul 2005 09:01:41 -0000 1.7 @@ -25,7 +25,7 @@ where course_id = :course_id } set template_calendar_id [dotlrn_calendar::get_group_calendar_id -community_id $template_community_id] - set template_item_type_id [db_string get_item_type_id { } -default 0] + set template_item_type_id [db_string get_item_type_id_template { } -default 0] } if {![info exists mode]} { @@ -198,8 +198,10 @@ # Create the section for predefined sessions if { [info exists template_calendar_id] } { - set sessions_list [db_list_of_lists sessions { }] +# ns_log notice "DEBUG:: TEMPLATE_CALENDAR_ID $template_calendar_id" +# set sessions_list [db_list_of_lists sessions { }] } else { + ns_log notice "DEBUG:: TEMPLATE_CALENDAR_ID DOESN'T EXIST" set sessions_list [list] }