summaryrefslogtreecommitdiffstats
path: root/app/controllers/watchers_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-22 07:19:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-22 07:19:45 +0000
commit9305c84093c4fb2d10e26ea38af436ff9ac93fde (patch)
tree467b24ae51bd69efa5d6b76e2d179373ed11be3d /app/controllers/watchers_controller.rb
parent72ab3e22b180206b221105ad6ad2947e67a25b1f (diff)
downloadredmine-9305c84093c4fb2d10e26ea38af436ff9ac93fde.tar.gz
redmine-9305c84093c4fb2d10e26ea38af436ff9ac93fde.zip
Reverted r9464 that broke a test. Project identifiers or ids can be used as parameters.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9465 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/watchers_controller.rb')
-rw-r--r--app/controllers/watchers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index d3194055d..00f647023 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_by_identifier(params[:project_id])
+ @project = Project.visible.find(params[:project_id])
end
rescue
render_404