1
0
Fork 0

topic custom fields passed to params to be able to consume on topic creation event

Dieser Commit ist enthalten in:
fzngagan 2020-03-18 15:38:59 +05:30
Ursprung ca5afcb95d
Commit 4c20d6970a

Datei anzeigen

@ -407,12 +407,11 @@ class CustomWizard::Builder
custom_key = keyArr.last
type = keyArr.first
if type === 'topic'
topic_custom_fields[custom_key] = value
elsif type === 'post'
topic_custom_fields[custom_key] = value if type === 'topic'
params[:custom_fields] ||= {}
params[:custom_fields][custom_key.to_sym] = value
end
end
else
value = [*value] + tags if key === 'tags'