Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2668 closed defect (bug) (fixed)

cannot leave hidden group

Reported by: dwenaus Owned by:
Priority: normal Milestone: 1.5
Component: Groups Version: 1.5
Severity: Keywords: needs-patch
Cc:

Description

One cannot leave a hidden group - the button is there but clicking it makes no difference.

Change History (4)

#1 @r-a-y
16 years ago

  • Component CoreGroups
  • Keywords needs-patch added
  • Version1.3

Confirmed on 1.3-bleeding. Leaving public and private groups work fine.

What's interesting is I commented out the following line in bp-groups.php:

add_action( 'wp', 'groups_action_leave_group', 3 );

Just to see what would happen and the same thing occurred; I was able to leave public and private groups fine, but couldn't leave hidden groups...

#2 @r-a-y
16 years ago

Was looking at the wrong part of code.

The right function to debug is groups_leave_group().
Is groups_action_leave_group() even necessary? Might need to deprecate it.

#3 @boonebgorges
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [3556]) Removes bp-default AJAX check for hidden group status when user attempts to leave group. Fixes #2668

#4 @boonebgorges
16 years ago

Strangely, there was a check in bp_dtheme_ajax_joinleave_group() - the ajax handler in bp-default - that was preventing you from leaving hidden groups. It's been there since bp-default was first put into the trunk. I am not sure what the reasoning would be for not letting someone leave a hidden group (maybe that they wouldn't be able to rejoin??), but in any case it's a check that should not be happening at the level of AJAX.

Note: See TracTickets for help on using tickets.