summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-04-24 15:44:12 +0200
committerMatija Čupić <matteeyah@gmail.com>2019-04-24 15:44:12 +0200
commit163730f0a2c8f7266cc9521bfd326b351688c48c (patch)
treeb1626706cbdff720cbae2d2344495e2aacfb5b3b /app
parenta89e8149b686c37962612779b0d245e7a90e59a8 (diff)
downloadgitlab-ce-163730f0a2c8f7266cc9521bfd326b351688c48c.tar.gz
Redirect to settings page on invalid update
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/settings/ci_cd_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/settings/ci_cd_controller.rb b/app/controllers/projects/settings/ci_cd_controller.rb
index d1c5cef76fa..c4dff95a4b9 100644
--- a/app/controllers/projects/settings/ci_cd_controller.rb
+++ b/app/controllers/projects/settings/ci_cd_controller.rb
@@ -19,7 +19,7 @@ module Projects
redirect_to project_settings_ci_cd_path(@project)
else
- render 'show'
+ redirect_to project_settings_ci_cd_path(@project), alert: result[:message]
end
end
end