Commit 6a73b76c authored by Ciro Santilli's avatar Ciro Santilli

Remove param[:project_id] at admin controller

The route never passes that parameter to the helpers.
parent 3880bb61
......@@ -31,9 +31,7 @@ class Admin::ProjectsController < Admin::ApplicationController
protected
def project
id = params[:project_id] || params[:id]
@project = Project.find_with_namespace(id)
@project = Project.find_with_namespace(params[:id])
@project || render_404
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