Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
FIX: allow action tags and topic field tag mapping to work together
Dieser Commit ist enthalten in:
Ursprung
e328331249
Commit
82d98892a3
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
|
@ -366,6 +366,9 @@ class CustomWizard::Builder
|
||||||
|
|
||||||
params[:category] = action_category_id(action, data)
|
params[:category] = action_category_id(action, data)
|
||||||
|
|
||||||
|
tags = action['tags'] || []
|
||||||
|
params[:tags] = tags
|
||||||
|
|
||||||
topic_custom_fields = {}
|
topic_custom_fields = {}
|
||||||
|
|
||||||
if action['add_fields']
|
if action['add_fields']
|
||||||
|
@ -389,7 +392,7 @@ class CustomWizard::Builder
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
value = [*value] if key === 'tags'
|
value = [*value] + tags if key === 'tags'
|
||||||
params[key.to_sym] = value
|
params[key.to_sym] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren