diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-03 12:57:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-03 12:57:33 +0000 |
commit | 8316e786672d019699ea472bf83eda5da32820f9 (patch) | |
tree | ecb7c81760c83f9c24da7d82a6198a16da4b37b3 /app/models/custom_value.rb | |
parent | 4a988b0f9223f76dee2252608986a6e3f1a634a6 (diff) | |
download | redmine-8316e786672d019699ea472bf83eda5da32820f9.tar.gz redmine-8316e786672d019699ea472bf83eda5da32820f9.zip |
custom_field.possible_values is now serialized (no longer pipe separated)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@223 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_value.rb')
-rw-r--r-- | app/models/custom_value.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_value.rb b/app/models/custom_value.rb index 015ccd244..e93dfb4f3 100644 --- a/app/models/custom_value.rb +++ b/app/models/custom_value.rb @@ -31,7 +31,7 @@ protected when "date"
errors.add(:value, :activerecord_error_not_a_date) unless value =~ /^\d{4}-\d{2}-\d{2}$/ or value.empty?
when "list"
- errors.add(:value, :activerecord_error_inclusion) unless custom_field.possible_values.split('|').include? value or value.empty?
+ errors.add(:value, :activerecord_error_inclusion) unless custom_field.possible_values.include? value or value.empty?
end
end end
|