Commit a3ebea3c 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 @@
render "new_user_map" and return
# 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)
session[:google_code_user_map] = user_map
flash[:notice] = "The user map has been saved. Continue by selecting the projects you want to import."
Supports Markdown
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