diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-23 20:01:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-23 20:01:28 +0000 |
commit | 5e1dc78d75391e3b0b628af06840ffc6674bd1c1 (patch) | |
tree | 32a2c5e30d679ccc18de8615deedd4f86f935d8c | |
parent | 32bb0226e7b8667c2507674cbe8dc0d9d2a6e678 (diff) | |
download | redmine-5e1dc78d75391e3b0b628af06840ffc6674bd1c1.tar.gz redmine-5e1dc78d75391e3b0b628af06840ffc6674bd1c1.zip |
Fixed: wiki pages in search results are referenced by project number, not by project identifier (#4456).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3231 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/wiki_page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 1b0bf4d49..ad2d8135a 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -28,7 +28,7 @@ class WikiPage < ActiveRecord::Base acts_as_event :title => Proc.new {|o| "#{l(:label_wiki)}: #{o.title}"}, :description => :text, :datetime => :created_on, - :url => Proc.new {|o| {:controller => 'wiki', :id => o.wiki.project_id, :page => o.title}} + :url => Proc.new {|o| {:controller => 'wiki', :id => o.wiki.project, :page => o.title}} acts_as_searchable :columns => ['title', 'text'], :include => [{:wiki => :project}, :content], |