mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
Fix url generation error on hook invalid create
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user