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

This commit is contained in:
Douwe Maan
2015-04-17 13:32:29 +02:00
parent 5456b00f27
commit dfebcb89e6
@@ -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."