From 777edc13c1378810371631c3c897c11f314db7c1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 14 Dec 2007 21:47:57 +0000 Subject: [PATCH] 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 --- app/models/custom_field.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5