diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-22 04:01:04 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-22 04:01:04 +0000 |
commit | 72ab3e22b180206b221105ad6ad2947e67a25b1f (patch) | |
tree | 2c6f18c339234590b4f169c834491286d0cf209b /app | |
parent | e95ab319835b21cd2b3f2a07cb7034d51dc921e3 (diff) | |
download | redmine-72ab3e22b180206b221105ad6ad2947e67a25b1f.tar.gz redmine-72ab3e22b180206b221105ad6ad2947e67a25b1f.zip |
Rails3: use Project.visible.find_by_identifier instead of .find for adding watchers dialog on new issue
On Rails 3.0.12, find_project method returns render_404
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9464 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/watchers_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 00f647023..d3194055d 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -109,7 +109,7 @@ private @watched = klass.find(params[:object_id]) @project = @watched.project elsif params[:project_id] - @project = Project.visible.find(params[:project_id]) + @project = Project.visible.find_by_identifier(params[:project_id]) end rescue render_404 |