diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-08-16 19:59:55 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-08-17 17:54:24 -0500 |
commit | 8b8a4626c601a13683599fd1a127e2c502af38a3 (patch) | |
tree | 5478e3356c4ab3a02923cb48c8271a97273959fa /app/controllers/projects_controller.rb | |
parent | e07c27fee427195d8d89f6278d0fc12dfeec3588 (diff) | |
download | gitlab-ce-8b8a4626c601a13683599fd1a127e2c502af38a3.tar.gz |
Fix specs and implement fixes based on failing specs
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 93338dba51e..fc52cd2f367 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -137,13 +137,13 @@ class ProjectsController < Projects::ApplicationController noteable = case params[:type] when 'Issue' - IssuesFinder.new(current_user, project_id: project.id, state: 'all'). + IssuesFinder.new(current_user, project_id: @project.id, state: 'all'). execute.find_by(iid: params[:type_id]) when 'MergeRequest' - MergeRequestsFinder.new(current_user, project_id: project.id, state: 'all'). + MergeRequestsFinder.new(current_user, project_id: @project.id, state: 'all'). execute.find_by(iid: params[:type_id]) when 'Commit' - project.commit(params[:type_id]) + @project.commit(params[:type_id]) else nil end |