mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: base script import to handle category color/text color
This commit is contained in:
parent
f0b35b2fe2
commit
dcc4267490
5 changed files with 4 additions and 6 deletions
|
@ -370,7 +370,9 @@ class ImportScripts::Base
|
|||
user_id: opts[:user_id] || opts[:user].try(:id) || -1,
|
||||
position: opts[:position],
|
||||
description: opts[:description],
|
||||
parent_category_id: opts[:parent_category_id]
|
||||
parent_category_id: opts[:parent_category_id],
|
||||
color: opts[:color] || "AB9364",
|
||||
text_color: opts[:text_color] || "FFF",
|
||||
)
|
||||
|
||||
new_category.custom_fields["import_id"] = import_id if import_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue