DEV: Move requested_group_id custom field from post to topic (#9127)

Follow-up-to accbbded15
This commit is contained in:
Bianca Nenciu
2020-03-24 11:12:52 +02:00
committed by GitHub
parent bef8468510
commit d8640fd042
13 changed files with 71 additions and 56 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ class GroupsController < ApplicationController
raw: params[:reason],
archetype: Archetype.private_message,
target_usernames: usernames.join(','),
custom_fields: { requested_group_id: group.id },
topic_opts: { custom_fields: { requested_group_id: group.id } },
skip_validations: true
).create!