Opened 2 years ago
Closed 2 years ago
#9223 closed defect (bug) (fixed)
Inconsistency in Groups WP Admin feedback messages
| Reported by: | martenw | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 15.0.0 |
| Component: | Groups | Version: | 14.0.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
After removing a member from a group a success as well as an error is reported.
The reason for this is a missing return statement with the value TRUE at the end of the function groups_remove_member() in the file bp-groups-functions.php.
The second message reported after adding the mentioned return statement is not logical to me.
The group has been updated successfully.
The following members were successfully modified: xxx
The member isn’t modified but removed from the group.
Change History (9)
This ticket was mentioned in PR #356 on buddypress/buddypress by @imath.
2 years ago
#2
- Keywords has-patch added; needs-patch removed
This PR specifically targets milestone 14.1: it's only making sure feedback messages when using the BP Legacy template pack are not totally misleading when a member is removed from a group.
The Group's Admin UI, once this PR is committed, will need to be improved to better reflect the kind of action that was performed for a specific member of the group instead of simply grouping everything into "modification".
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9223
#3
@
2 years ago
- Summary Inconsistency is messages → Inconsistency in Groups WP Admin feedback messages
#6
@
2 years ago
- Keywords has-patch removed
- Milestone 14.1.0 → 15.0.0
- Resolution fixed
- Status closed → reopened
I'm reopening this ticket to work on the second part during 15.0.0:
The Group's Admin UI, once this PR is committed, will need to be improved to better reflect the kind of action that was performed for a specific member of the group instead of simply grouping everything into "modification".
This ticket was mentioned in Slack in #buddypress by espellcaste. View the logs.
2 years ago
This ticket was mentioned in PR #374 on buddypress/buddypress by @imath.
2 years ago
#8
- Keywords has-patch added
-> Use multidimensional arrays to bring more meaningful user feecbacks.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9223
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @martenw
Thanks a lot for your report. I confirm the issue. It's happening when the BP REST API based UI to manage members is not available (eg: the BP Legacy template pack is used instead of the BP Nouveau one). In this case we fall back to the legacy UI / Admin functions.
On front-end, an error message is thrown although the members was removed.
On back-end, @martenw's description is accurate.
The root cause is a regression I introduced in r13873 during the 14.0 development cycle. I forgot to return true at the end of the
groups_remove_member()function as @martenw noted.I'll work on a fix asap.