Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 19:10:29 +01:00
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
|
||||
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'
|
||||
|
|
Laden …
In neuem Issue referenzieren