2
0
Fork 0
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:
Régis Hanol 2015-05-19 12:40:35 +02:00
parent f0b35b2fe2
commit dcc4267490
5 changed files with 4 additions and 6 deletions

View file

@ -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