[buddypress-trac] [BuddyPress] #2306: Add Friend Button on member directory wrong after having added friend
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Tue Apr 13 21:30:39 UTC 2010
#2306: Add Friend Button on member directory wrong after having added friend
---------------------+------------------------------------------------------
Reporter: phlux0r | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Future Release
Component: Core | Keywords: add friend button
---------------------+------------------------------------------------------
In BP svn rev. 2914 when I request friendship and the friend approves it,
then go back to the member list, the Add Friend button is still showing
"Add Friend". Clicking it returns -1/.
In bp-core-templatetags.php in function bp_member_add_friend_button there
is a test:
if ( null === $members_template->member->is_friend )
the next statement is:
$friend_status = 'not_friends';
but that's not correct since the is_friend isn't set so the statement
should read:
$friend_status = null;
This will force the bp_add_friend_button() function to check for the
friendship and display the correct button.
HTH
--
Ticket URL: <http://trac.buddypress.org/ticket/2306>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list