Commit dfebcb89 authored by Douwe Maan's avatar Douwe Maan
Browse files

Don't save unchanged user map items to the DB.

parent abc9abf3e324
......@@ -54,6 +54,11 @@ def create_user_map
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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment