diff options
author | skv <skv-headless@yandex.ru> | 2014-04-06 19:42:24 +0400 |
---|---|---|
committer | skv <skv-headless@yandex.ru> | 2014-04-06 19:42:24 +0400 |
commit | 4cc2afdf2eb414cb4aeea5ffab1ac86f56e97a55 (patch) | |
tree | 139d34c20e6b1689291c8f98136a89226f1a0464 /app | |
parent | bc40efa19d499f603c80c77b1d1e291bd4373be6 (diff) | |
download | gitlab-ce-4cc2afdf2eb414cb4aeea5ffab1ac86f56e97a55.tar.gz |
Fix url generation error on hook invalid create
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/hooks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/hooks_controller.rb b/app/controllers/projects/hooks_controller.rb index a863b318324..c43d26385f7 100644 --- a/app/controllers/projects/hooks_controller.rb +++ b/app/controllers/projects/hooks_controller.rb @@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController if @hook.valid? redirect_to project_hooks_path(@project) else - @hooks = @project.hooks + @hooks = @project.hooks.select(&:persisted?) render :index end end |