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)
Change History (3)
#1
@
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;
[...]
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
otherwise all buttons are 'add friend' with no loggedin user id