Commit dfebcb89 authored by Douwe Maan's avatar Douwe Maan

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

parent 5456b00f
...@@ -54,6 +54,11 @@ class Import::GoogleCodeController < Import::BaseController ...@@ -54,6 +54,11 @@ class Import::GoogleCodeController < Import::BaseController
render "new_user_map" and return render "new_user_map" and return
end 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 session[:google_code_user_map] = user_map
flash[:notice] = "The user map has been saved. Continue by selecting the projects you want to import." 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