Skip to content

A platform for community discussion. Free, open, simple.

DEV: Import user title in generic_bulk

Gerhard Schlager249d9514c8f0
diff --git a/script/bulk_import/base.rb b/script/bulk_import/base.rb
index 6d7cb130bcc..08eb9b5f59a 100644
--- a/script/bulk_import/base.rb
+++ b/script/bulk_import/base.rb
@@ -515,6 +515,7 @@ class BulkImport::Base
username
username_lower
name
+ title
active
trust_level
admin
diff --git a/script/bulk_import/generic_bulk.rb b/script/bulk_import/generic_bulk.rb
index 4c44f73f2ef..e9661fc5ce9 100644
--- a/script/bulk_import/generic_bulk.rb
+++ b/script/bulk_import/generic_bulk.rb
@@ -461,6 +461,7 @@ class BulkImport::Generic < BulkImport::Base
row["name"] = nil
row["registration_ip_address"] = nil
row["date_of_birth"] = nil
+ row["title"] = nil
end
{
@@ -478,6 +479,7 @@ class BulkImport::Generic < BulkImport::Base
suspended_till: suspended_till,
registration_ip_address: row["registration_ip_address"],
date_of_birth: to_date(row["date_of_birth"]),
+ title: row["title"],
}
end