Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
24354761
Commit
24354761
authored
10 years ago
by
Carlos Ribeiro
Browse files
Options
Download
Email Patches
Plain Diff
Add error message when have error on profile screen
parent
b99221e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG
CHANGELOG
+1
-0
app/controllers/profiles_controller.rb
app/controllers/profiles_controller.rb
+2
-1
No files found.
CHANGELOG
View file @
24354761
...
...
@@ -12,6 +12,7 @@ v 7.10.0 (unreleased)
- Fix alignment of navbar toggle button (Cody Mize)
- Identical look of selectboxes in UI
- Move "Import existing repository by URL" option to button.
- Improve error message when save profile has error.
v 7.9.0 (unreleased)
- Add HipChat integration documentation (Stan Hu)
...
...
This diff is collapsed.
Click to expand it.
app/controllers/profiles_controller.rb
View file @
24354761
...
...
@@ -25,7 +25,8 @@ class ProfilesController < ApplicationController
if
@user
.
update_attributes
(
user_params
)
flash
[
:notice
]
=
"Profile was successfully updated"
else
flash
[
:alert
]
=
"Failed to update profile"
messages
=
@user
.
errors
.
full_messages
.
uniq
.
join
(
'. '
)
flash
[
:alert
]
=
"Failed to update profile.
#{
messages
}
"
end
respond_to
do
|
format
|
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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