Index: openacs-4/packages/dotlrn-ecommerce/www/admin/course-info.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/admin/course-info.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn-ecommerce/www/admin/course-info.tcl 4 Jul 2005 14:28:32 -0000 1.4 +++ openacs-4/packages/dotlrn-ecommerce/www/admin/course-info.tcl 16 Jul 2005 12:51:06 -0000 1.5 @@ -194,12 +194,8 @@ set num_sessions [db_string num_sessions {} ] - db_1row attendees { } - - if { ! [empty_string_p $maxparticipants] } { - set available_slots [expr $maxparticipants - $attendees] - } - + set attendees [dotlrn_ecommerce::section::attendees $section_id] + set available_slots [dotlrn_ecommerce::section::available_slots $section_id] set sessions [util_memoize [list dotlrn_ecommerce::section::sessions $calendar_id]] } @@ -309,4 +305,4 @@ set template_item_type_id [db_string get_item_type_id { } -default 0] set template_calendar_url [export_vars -base ${template_community_url}calendar/cal-item-new { {item_type_id $template_item_type_id} {calendar_id $template_calendar_id} {view day} }] } -} \ No newline at end of file +}