Commit 4cc2afdf authored by skv's avatar skv

Fix url generation error on hook invalid create

parent bc40efa1
...@@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController ...@@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController
if @hook.valid? if @hook.valid?
redirect_to project_hooks_path(@project) redirect_to project_hooks_path(@project)
else else
@hooks = @project.hooks @hooks = @project.hooks.select(&:persisted?)
render :index render :index
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment