[buddypress-trac] [BuddyPress] #3860: Error creating a topic in a private or hidden group (from forums page)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Dec 16 16:48:06 UTC 2011


#3860: Error creating a topic in a private or hidden group (from forums page)
--------------------------+------------------------------
 Reporter:  deschle       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Forums        |     Version:  1.5.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by deschle):

 The sql query generated in bp_forums_get_topic_details() (which is called
 from groups_new_group_forum_topic ) contains "g.status = 'public'" in the
 where statement:

 SELECT t.*, g.id as object_id, g.name as object_name, g.slug as
 object_slug
 FROM wp_bb_topics AS t JOIN wp_bp_groups AS g LEFT JOIN
 wp_bp_groups_groupmeta AS gm ON g.id = gm.group_id
 WHERE (gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND
 g.status = 'public' AND t.topic_id = '282' AND t.topic_status = '0'
 ORDER BY t.topic_time DESC LIMIT 30

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3860#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list