Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Brodnitskiy committed Feb 27, 2013
1 parent 5583c71 commit fbdf918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/patches/redmine_helper_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def define_project
if params[:controller] == 'issues'
params[:project_id] ? Project.find(params[:project_id]) : Issue.find(params[:id]).project
elsif params[:controller] == 'projects'|| params[:controller] == 'activities' || params[:controller] == 'reports'
Project.find(params[:id])||@project
Project.find(params[:id]) unless params[:id].nil?
elsif params[:controller] == 'journals'
Journal.find(params[:id]).issue.project
end
Expand Down

0 comments on commit fbdf918

Please sign in to comment.