Opened 3 years ago
Closed 3 years ago
#8577 closed defect (bug) (fixed)
Inaccurate error message on Group Invites page
Reported by: | comminski | Owned by: | imath |
---|---|---|---|
Milestone: | 10.0.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | needs-patch |
Cc: |
Description
Hi, I think there is an inaccurate message in the Group Invites plugin. Here's the issue:
- Log in and friend another user
- Create a group
- Go to the group, click the 'send invites' tab and then click the 'Friendships' tab
- Enter a random search term (one that will return no results)
Expected result:
I expected to see A message saying that no members were found
Actual result:
The following message All your friends are already members of this group, or have already received an invite to join this group, or have requested to join it.
I don't think this message is correct as the friend has not been invited and and is not a group member.
I think the problem seems to be with the logic on line 320 of the 'ajax.php' (/buddypress/bp-templates/bp-nouveau/includes/groups/ajax.php) in the method 'bp_nouveau_ajax_get_users_to_invite'
It looks like the 'No Members Found' error message will always be overwritten by the other message if the scope is 'friends'.
Good catch @comminski I'll work on a fix asap!