#3697 closed defect (bug) (fixed)
Forum form helpers omit moderators and mishandle dropdowns
| Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6.20 |
| Component: | Component - Forums | Version: | 2.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Three defects in forum form template helpers are present in 2.6.19:
bbp_get_form_forum_moderators()resolves assigned moderator IDs to nicename strings, then tries to pluckuser_nicenamefrom those strings. The edit field is blank even when moderators are assigned.- The new-forum type dropdown selects the public post status (
publish), which is not one of itsforumorcategoryoptions. No option is explicitly selected. - The visibility dropdown applies
bbp_get_form_forum_type_dropdowninstead of a visibility-specific filter. Callbacks onbbp_get_form_forum_visibility_dropdownnever run.
Show assigned moderator nicenames when editing, explicitly select forum for a new forum, and add a distinct visibility filter while preserving the existing type-filter call for compatibility. Cover these paths with PHPUnit regression tests. Fix on trunk and backport the narrow source changes and regressions to branches/2.6 for 2.6.20. The broader forum-template coverage remains tracked in #3695.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 7772: