topic custom fields passed to params to be able to consume on topic creation event
Dieser Commit ist enthalten in:
Ursprung
ca5afcb95d
Commit
4c20d6970a
1 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
|
@ -407,12 +407,11 @@ class CustomWizard::Builder
|
||||||
custom_key = keyArr.last
|
custom_key = keyArr.last
|
||||||
type = keyArr.first
|
type = keyArr.first
|
||||||
|
|
||||||
if type === 'topic'
|
topic_custom_fields[custom_key] = value if type === 'topic'
|
||||||
topic_custom_fields[custom_key] = value
|
|
||||||
elsif type === 'post'
|
|
||||||
params[:custom_fields] ||= {}
|
params[:custom_fields] ||= {}
|
||||||
params[:custom_fields][custom_key.to_sym] = value
|
params[:custom_fields][custom_key.to_sym] = value
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
value = [*value] + tags if key === 'tags'
|
value = [*value] + tags if key === 'tags'
|
||||||
|
|
Laden …
In neuem Issue referenzieren