summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-12-21 13:29:27 +0100
committerJames Lopez <james@jameslopez.es>2016-12-21 13:29:27 +0100
commit4c3ec579e5660daab23d48bd4b3e21050735f726 (patch)
tree23722f566de4f61b48eb7436174bf6c37dd011e1 /app/controllers
parentfd5062a848d63b89248c384e0171c6f1af833a49 (diff)
downloadgitlab-ce-4c3ec579e5660daab23d48bd4b3e21050735f726.tar.gz
added more specs
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/groups_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index b83c3a872cf..1e499199f82 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -82,6 +82,8 @@ class GroupsController < Groups::ApplicationController
if Groups::UpdateService.new(@group, current_user, group_params).execute
redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated."
else
+ @group.reload
+
render action: "edit"
end
end