Skip to:

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2668 closed defect (bug) (fixed)

cannot leave hidden group

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


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

Change History (4)

#1 @r-a-y
14 years ago

  • Component changed from Core to Groups
  • Keywords needs-patch added
  • Version set to 1.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
14 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
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

#4 @boonebgorges
14 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.