Commit d238a21b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6708 from skv-headless/fix_url_error_on_invalid_hook

Fix url generation error on hook invalid create
parents 38ae34a3 4cc2afdf
......@@ -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
......
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