I am in the process of merging SloanSpace with OACS4.6 release and
ran accross a problem with calendar/www/index. The current code in
OACS4.6 will create a new personal calendar in any package where the
user does not currently have a personal calendar. This is not the
correct behavior for dotLRN, we only want group calendars for
dotlrn_communities.
if {![db_string private_calendar_count_qry {}]} {
# Create a personal calendar for the user
calendar::new -owner_id $user_id -private_p "t" -
calendar_name "Personal" -package_id $package_id
}
The query is:
select count(*) from calendars
where package_id= :package_id
and owner_id= :user_id
and private_p = 't'
I can fix it easily enough for dotLRN by removing package_id from
the query in index.xql, however, this doesn't seem to be the right
solution for OACS4.6 as a whole and subsites.
select count(*) from calendars
where owner_id= :user_id
and private_p = 't'
I discussed this with Tom Jackson in email and he suggest we post to
the bboards and try to get a better understanding of how this was
meant to work, then we can try to find a general solution.
This issue has been reported as SDM 1879