0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

FIX: allow action tags and topic field tag mapping to work together

Dieser Commit ist enthalten in:
Angus McLeod 2019-10-03 12:17:33 +10:00
Ursprung e328331249
Commit 82d98892a3

Datei anzeigen

@ -366,6 +366,9 @@ class CustomWizard::Builder
params[:category] = action_category_id(action, data)
tags = action['tags'] || []
params[:tags] = tags
topic_custom_fields = {}
if action['add_fields']
@ -389,7 +392,7 @@ class CustomWizard::Builder
end
end
else
value = [*value] if key === 'tags'
value = [*value] + tags if key === 'tags'
params[key.to_sym] = value
end
end