Skip to:
Content

Opened 10 years ago

Closed 10 years ago

#991 closed defect (bug) (fixed)

re 1844, small bp_add_friend_button error

Reported by: junsuijin Owned by: junsuijin
Milestone: 1.1 Priority: major
Severity: Version:
Component: 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 10 years ago.
otherwise all buttons are 'add friend' with no loggedin user id

Download all attachments as: .zip

Change History (3)

@junsuijin
10 years ago

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

#1 @junsuijin
10 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
10 years ago

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

(In [1853]) Fixes #991 props junsuijin

Note: See TracTickets for help on using tickets.