REST API: custom fields definition (#11159).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12165 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2013-09-29 10:08:30 +00:00
1 parent 4a36e09d49
commit 886284b33f
5 files changed
+106 -4

No files matched your search

+4 -2
View File
@@ -123,8 +123,10 @@ class CustomField < ActiveRecord::Base
values.each do |value|
value.force_encoding('UTF-8') if value.respond_to?(:force_encoding)
end
values
else
[]
end
values || []
end
end
@@ -301,7 +303,7 @@ class CustomField < ActiveRecord::Base
def self.customized_class
self.name =~ /^(.+)CustomField$/
begin; $1.constantize; rescue nil; end
$1.constantize rescue nil
end
# to move in project_custom_field