Commit 777edc13 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent d1a3fbea
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment