summaryrefslogtreecommitdiffstats
path: root/app/models/issue_custom_field.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 07:15:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 07:15:25 +0000
commit316eae078cc43cea468e0397ca35fbf8eced8da0 (patch)
tree129992397cd85e7879d28d16f4aae18470c7ecc4 /app/models/issue_custom_field.rb
parent43d8ab8288e1d1f561d3fc530472ddb0042db5fe (diff)
downloadredmine-316eae078cc43cea468e0397ca35fbf8eced8da0.tar.gz
redmine-316eae078cc43cea468e0397ca35fbf8eced8da0.zip
Use safe_attributes for custom fields.
git-svn-id: http://svn.redmine.org/redmine/trunk@15689 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_custom_field.rb')
-rw-r--r--app/models/issue_custom_field.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/issue_custom_field.rb b/app/models/issue_custom_field.rb
index 0c679896d..ad2d504e1 100644
--- a/app/models/issue_custom_field.rb
+++ b/app/models/issue_custom_field.rb
@@ -20,6 +20,9 @@ class IssueCustomField < CustomField
has_and_belongs_to_many :trackers, :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :foreign_key => "custom_field_id"
has_many :issues, :through => :issue_custom_values
+ safe_attributes 'project_ids',
+ 'tracker_ids'
+
def type_name
:label_issue_plural
end