diff options
author | Illya Klymov <xanf@xanf.me> | 2019-04-02 04:14:19 +0300 |
---|---|---|
committer | Illya Klymov <xanf@xanf.me> | 2019-04-03 11:29:35 +0300 |
commit | ffbc66cc0bb62b962779aea4d4b0c06dcf12078e (patch) | |
tree | 062af37bc973194dfef84a418efc2cf5cdbf4509 /app | |
parent | a374d690e702f26036f38bf375ceb2a5cfa3fe23 (diff) | |
download | gitlab-ce-ffbc66cc0bb62b962779aea4d4b0c06dcf12078e.tar.gz |
Redirect to edit page on group transfer failurexanf/gitlab-ce-transfer-disables-js
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/groups_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 0192b1c253e..87b8ef03313 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -124,8 +124,8 @@ class GroupsController < Groups::ApplicationController flash[:notice] = "Group '#{@group.name}' was successfully transferred." redirect_to group_path(@group) else - flash.now[:alert] = service.error - render :edit + flash[:alert] = service.error + redirect_to edit_group_path(@group) end end # rubocop: enable CodeReuse/ActiveRecord |