Index: openacs-4/packages/dotlrn/tcl/community-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.xql,v diff -u -N -r1.61 -r1.62 --- openacs-4/packages/dotlrn/tcl/community-procs.xql 21 May 2002 00:53:58 -0000 1.61 +++ openacs-4/packages/dotlrn/tcl/community-procs.xql 21 May 2002 06:52:34 -0000 1.62 @@ -95,21 +95,32 @@ - + - select role_two - from acs_rel_types - where rel_type = :rel_type + select acs_rel_types.rel_type, + acs_rel_roles.role, + acs_rel_roles.pretty_name, + acs_rel_roles.pretty_plural + from acs_rel_types, + acs_rel_roles + where acs_rel_types.object_type_one = :community_type + and acs_rel_types.role_two = acs_rel_roles.role - + - select pretty_name - from acs_rel_roles - where role = (select role_two - from acs_rel_types - where rel_type = :rel_type) + select acs_rel_types.rel_type, + acs_rel_roles.role, + acs_rel_roles.pretty_name, + acs_rel_roles.pretty_plural + from acs_rel_types, + acs_rel_roles + where acs_rel_types.object_type_one in (select dotlrn_community_types.community_type + from dotlrn_community_types + where dotlrn_community_types.supertype is null + or dotlrn_community_types.supertype = 'dotlrn_community') + and acs_rel_types.role_two = acs_rel_roles.role @@ -545,7 +556,8 @@ update acs_attribute_values set attr_value = :attribute_value - where object_id = :community_id + where attribute_id = :attribute_id + and object_id = :community_id