Commit 4cc2afdf2eb414cb4aeea5ffab1ac86f56e97a55
1 parent
bc40efa1
Exists in
spb-stable
and in
3 other branches
Fix url generation error on hook invalid create
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/projects/hooks_controller.rb
| @@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController | @@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController | ||
| 18 | if @hook.valid? | 18 | if @hook.valid? |
| 19 | redirect_to project_hooks_path(@project) | 19 | redirect_to project_hooks_path(@project) |
| 20 | else | 20 | else |
| 21 | - @hooks = @project.hooks | 21 | + @hooks = @project.hooks.select(&:persisted?) |
| 22 | render :index | 22 | render :index |
| 23 | end | 23 | end |
| 24 | end | 24 | end |