diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-05 13:24:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-05 13:24:24 +0000 |
commit | 85f2074aff2613393f02f2d0fc360cb50cb9b097 (patch) | |
tree | 9bc7c1883ecdc112ff0bf4175cf247d195773f67 /app | |
parent | 74cd72a2d96941c3ab283f547fb35f6b02333f92 (diff) | |
download | redmine-85f2074aff2613393f02f2d0fc360cb50cb9b097.tar.gz redmine-85f2074aff2613393f02f2d0fc360cb50cb9b097.zip |
Reverts change in r13428, project can't be found by identifier (#17959).
git-svn-id: http://svn.redmine.org/redmine/trunk@13429 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/previews_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb index e74d1fe55..cd354faab 100644 --- a/app/controllers/previews_controller.rb +++ b/app/controllers/previews_controller.rb @@ -45,7 +45,7 @@ class PreviewsController < ApplicationController def find_project project_id = (params[:issue] && params[:issue][:project_id]) || params[:project_id] - @project = Project.visible.find(project_id) + @project = Project.find(project_id) rescue ActiveRecord::RecordNotFound render_404 end |