]> source.dussan.org Git - redmine.git/commitdiff
Fixed: News summary field is not searchable (#2998).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Mar 2009 12:43:21 +0000 (12:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Mar 2009 12:43:21 +0000 (12:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2641 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/news.rb

index 5949a731b9087674bcd27f97c673608b7c02f87e..c53fb05f953459eeec68bf5ca78c97a7541f0c34 100644 (file)
@@ -24,7 +24,7 @@ class News < ActiveRecord::Base
   validates_length_of :title, :maximum => 60
   validates_length_of :summary, :maximum => 255
 
-  acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
+  acts_as_searchable :columns => ['title', 'summary', "#{table_name}.description"], :include => :project
   acts_as_event :url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.id}}
   acts_as_activity_provider :find_options => {:include => [:project, :author]},
                             :author_key => :author_id