Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#991 closed defect (bug) (fixed)

re 1844, small bp_add_friend_button error

Reported by: junsuijin Owned by: junsuijin
Priority: major Milestone: 1.1
Component: Version:
Severity: Keywords: has-patch, tested
Cc:

Description

bp_add_friend_button needs to pass $potential_friend_id to bp_get_add_friend_button

Attachments (1)

fix-bp_add_friend_button.patch (525 bytes ) - added by junsuijin 17 years ago.
otherwise all buttons are 'add friend' with no loggedin user id

Download all attachments as: .zip

Change History (3)

@junsuijin
17 years ago

otherwise all buttons are 'add friend' with no loggedin user id

#1 @junsuijin
17 years ago

it should also be apparent that this bit of the bp_get_add_friend_button function does not appear to do anything, given this bug exists...

[...]
		if ( is_user_logged_in() ) {

			if ( !$potential_friend_id && $friends_template->friendship->friend )
				$potential_friend_id = $friends_template->friendship->friend->id;
			else if ( !$potential_friend_id && !$friends_template->friendship->friend )
				$potential_friend_id = $bp->displayed_user->id;
[...]

#2 @apeatling
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [1853]) Fixes #991 props junsuijin

Note: See TracTickets for help on using tickets.