diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-09 21:06:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-09 21:06:09 +0000 |
commit | 576a13e99d50a30cfcc9b78d4a0b3793990c0f40 (patch) | |
tree | 1e9b16083659bb33c255c05e2efdd9e31dd360ee /app/models/project.rb | |
parent | 742895183aebd0e88194ca07c11d94e43e7d24c2 (diff) | |
download | redmine-576a13e99d50a30cfcc9b78d4a0b3793990c0f40.tar.gz redmine-576a13e99d50a30cfcc9b78d4a0b3793990c0f40.zip |
Option to search attachment filenames and description (#4383).
git-svn-id: http://svn.redmine.org/redmine/trunk@13856 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index fa035b022..53613b097 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -64,7 +64,7 @@ class Project < ActiveRecord::Base :delete_permission => :manage_files acts_as_customizable - acts_as_searchable :columns => ['name', 'identifier', 'description'], :project_key => 'id', :permission => nil + acts_as_searchable :columns => ['name', 'identifier', 'description'], :project_key => "#{Project.table_name}.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}}, :author => nil |