diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-10-04 04:48:48 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-10-04 04:48:48 +0000 |
commit | 88e1587b08507e984d7ecb08e4e296c00a53df99 (patch) | |
tree | 5e08e1f5bd2428ddcfab32c850c520e59b808056 /app/models/custom_field.rb | |
parent | fb4210b6d969c50de2c4f676124d26820a337377 (diff) | |
download | redmine-88e1587b08507e984d7ecb08e4e296c00a53df99.tar.gz redmine-88e1587b08507e984d7ecb08e4e296c00a53df99.zip |
sort custom field issue filter by type and position (#12018)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10555 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r-- | app/models/custom_field.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index a934cc877..86227a4cf 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -51,6 +51,8 @@ class CustomField < ActiveRecord::Base :label => DocumentCategory::OptionName} ] + CUSTOM_FIELDS_NAMES = CUSTOM_FIELDS_TABS.collect{|v| v[:name]} + def set_searchable # make sure these fields are not searchable self.searchable = false if %w(int float date bool).include?(field_format) |