summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-09 07:55:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-09 07:55:26 +0000
commit9f788310b1b828cebeafcff6d3231d659dfbf6ac (patch)
tree45e72cdd78e9fbd9b54c74d0ecdaf443dcd62023 /app/models/time_entry.rb
parent7fba8bc682431baa7bcaf4c862fd6ca70b9eb053 (diff)
downloadredmine-9f788310b1b828cebeafcff6d3231d659dfbf6ac.tar.gz
redmine-9f788310b1b828cebeafcff6d3231d659dfbf6ac.zip
Fixed that custom_fields property is ignored for time entries in REST API (#11112).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9783 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r--app/models/time_entry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index 9008965af..ef085d875 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -66,7 +66,7 @@ class TimeEntry < ActiveRecord::Base
end
}
- safe_attributes 'hours', 'comments', 'issue_id', 'activity_id', 'spent_on', 'custom_field_values'
+ safe_attributes 'hours', 'comments', 'issue_id', 'activity_id', 'spent_on', 'custom_field_values', 'custom_fields'
def initialize(attributes=nil, *args)
super