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:
Roman Rizzi
2019-06-05 23:05:33 -03:00
committed by Sam
parent 7bd8f715bc
commit c3a38d2304
8 changed files with 116 additions and 6 deletions

View File

@ -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