]> source.dussan.org Git - redmine.git/commitdiff
Reverted r9464 that broke a test. Project identifiers or ids can be used as parameters.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 22 Apr 2012 07:19:45 +0000 (07:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 22 Apr 2012 07:19:45 +0000 (07:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9465 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/watchers_controller.rb

index d3194055d755248933ecb2c8d9aa96c79eb276b2..00f64702371d3075ec8046cb201cca9247e2d9f7 100644 (file)
@@ -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