mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Don't save unchanged user map items to the DB.
This commit is contained in:
@@ -54,6 +54,11 @@ class Import::GoogleCodeController < Import::BaseController
|
||||
render "new_user_map" and return
|
||||
end
|
||||
|
||||
# This is the default, so let's not save it into the database.
|
||||
user_map.reject! do |key, value|
|
||||
value == Gitlab::GoogleCodeImport::Client.mask_email(key)
|
||||
end
|
||||
|
||||
session[:google_code_user_map] = user_map
|
||||
|
||||
flash[:notice] = "The user map has been saved. Continue by selecting the projects you want to import."
|
||||
|
||||
Reference in New Issue
Block a user