mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
DEV: Make groups/new extensible by plugins (#7642)
* Expose a new plugin outlet. Pass group model to the group-member-dropdown so it can be accessed by plugins * Added controller tests for group custom fields. update custom fields when updating a group
This commit is contained in:
@ -545,6 +545,9 @@ class GroupsController < ApplicationController
|
||||
:automatic_membership_email_domains,
|
||||
:automatic_membership_retroactive
|
||||
])
|
||||
|
||||
custom_fields = Group.editable_group_custom_fields
|
||||
default_params << { custom_fields: custom_fields } unless custom_fields.blank?
|
||||
end
|
||||
|
||||
default_params
|
||||
|
Reference in New Issue
Block a user