Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
a3ebea3c8c50
Commit
a3ebea3c
authored
Apr 17, 2015
by
Douwe Maan
Browse files
Don't save unchanged user map items to the DB.
parent
abc9abf3e324
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/import/google_code_controller.rb
View file @
a3ebea3c
...
...
@@ -54,6 +54,11 @@
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."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment