From 46ecc488a9971a998973dfe52998135ad9dd2ff7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 24 Feb 2010 21:08:08 +0000 Subject: [PATCH] Fixed: projects are referenced by id in search results. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3482 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index da3634ab2..e2577c3e6 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -58,7 +58,7 @@ class Project < ActiveRecord::Base acts_as_customizable acts_as_searchable :columns => ['name', 'identifier', 'description'], :project_key => 'id', :permission => nil acts_as_event :title => Proc.new {|o| "#{l(:label_project)}: #{o.name}"}, - :url => Proc.new {|o| {:controller => 'projects', :action => 'show', :id => o.id}}, + :url => Proc.new {|o| {:controller => 'projects', :action => 'show', :id => o}}, :author => nil attr_protected :status, :enabled_module_names