Commit 268180c3 authored by jplang's avatar jplang

Reverts change in r13428, project can't be found by identifier (#17959).

git-svn-id: https://svn.redmine.org/redmine/trunk@13429 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1cb5387f
......@@ -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
......
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