Problem
With the new Group & Visibility section and group widget the default content visibility that you can set at /admin/config/opensocial/visibility is no longer respected. It always defaults to 'community'.
You can test this by going to /admin/config/opensocial/visibility and setting the default visibility to 'public' and then creating a topic.
Furthermore the logic in the SocialGroupSelectorWidget::validateGroupSelection is also flawed. It sends a "checked" command for every option so the last one (community) is always selected even when "public" is the default. You can see this when you first select a group and the visibility is set to group. Then setting the group selection to "None". You'd expect the visibility to go to "Public" but it goes to "Community".
Solution
- Find out and fix why the default visibility is not respected.
- Apply the patch of #2 as a workaround for
SocialGroupSelectorWidget::validateGroupSelection
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2961728-2.patch | 1.28 KB | kingdutch |
Comments
Comment #2
kingdutchComment #3
jaapjan commentedComment #4
kingdutchThis possibly still needs work because step 1 of the solution wasn't executed.
Comment #6
bramtenhove commented