Index: openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 11 Feb 2002 19:33:57 -0000 1.3 +++ openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 25 Feb 2002 19:51:38 -0000 1.4 @@ -20,6 +20,12 @@ } set list_of_calendar_ids $config(calendar_id) +if {[llength $list_of_calendar_ids] > 1} { + set force_calendar_id [calendar_have_private_p -return_id 1 [ad_conn user_id]] +} else { + set force_calendar_id [lindex $list_of_calendar_ids 0] +} + # set up some vars if {[empty_string_p $date]} { if {[empty_string_p $julian_date]} { @@ -37,7 +43,7 @@ if {$view == "day"} { set cal_stuff [calendar::one_day_display \ -item_template {$item} \ - -hour_template "\$hour" \ + -hour_template "\$hour" \ -date $current_date -start_hour 7 -end_hour 22 \ -calendar_id_list $list_of_calendar_ids] } @@ -54,7 +60,7 @@ -item_template {$item} \ -day_template "\$day_number" \ -date $current_date \ - -item_add_template "ADD" \ + -item_add_template "ADD" \ -calendar_id_list $list_of_calendar_ids] }