##// END OF EJS Templates
Fixed: wiki pages in search results are referenced by project number, not by project identifier (#4456)....
Jean-Philippe Lang -
r3117:5e1dc78d7539
parent child
Show More
@@ -28,7 +28,7 class WikiPage < ActiveRecord::Base
28 acts_as_event :title => Proc.new {|o| "#{l(:label_wiki)}: #{o.title}"},
28 acts_as_event :title => Proc.new {|o| "#{l(:label_wiki)}: #{o.title}"},
29 :description => :text,
29 :description => :text,
30 :datetime => :created_on,
30 :datetime => :created_on,
31 :url => Proc.new {|o| {:controller => 'wiki', :id => o.wiki.project_id, :page => o.title}}
31 :url => Proc.new {|o| {:controller => 'wiki', :id => o.wiki.project, :page => o.title}}
32
32
33 acts_as_searchable :columns => ['title', 'text'],
33 acts_as_searchable :columns => ['title', 'text'],
34 :include => [{:wiki => :project}, :content],
34 :include => [{:wiki => :project}, :content],
General Comments 0
You need to be logged in to leave comments. Login now