summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-14 21:47:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-14 21:47:57 +0000
commit777edc13c1378810371631c3c897c11f314db7c1 (patch)
tree597a93cc54987a7816b93378e5e8dba363da7d55 /app
parentd1a3fbea4087bdf5bb06b2bf231a2fe9bda65201 (diff)
downloadredmine-777edc13c1378810371631c3c897c11f314db7c1.tar.gz
redmine-777edc13c1378810371631c3c897c11f314db7c1.zip
Fixed: can not save numeric, date and boolean custom fields (broken by r994).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@996 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/custom_field.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index e1fd8666d..5a134c4ec 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -45,6 +45,7 @@ class CustomField < ActiveRecord::Base
self.possible_values = self.possible_values.collect{|v| v unless v.empty?}.compact
# make sure these fields are not searchable
self.searchable = false if %w(int float date bool).include?(field_format)
+ true
end
def validate