1
0
Fork 0

Commits vergleichen

...

2 Commits

Autor SHA1 Nachricht Datum
fzngagan
e2c1fa6c66 minor formatting 2020-03-18 15:41:20 +05:30
fzngagan
4c20d6970a topic custom fields passed to params to be able to consume on topic creation event 2020-03-18 15:38:59 +05:30

Datei anzeigen

@ -407,12 +407,10 @@ 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'