Commits vergleichen
2 Commits
main
...
custom-fie
Autor | SHA1 | Datum | |
---|---|---|---|
|
e2c1fa6c66 | ||
|
4c20d6970a |
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
|
@ -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'
|
||||||
|
|
Laden …
In neuem Issue referenzieren