Project

General

Profile

Patch #32431 ยป issue_custom_values.patch

Akira Matsuda, 2019-11-07 06:42

View differences:

app/models/issue_custom_field.rb
20 20
class IssueCustomField < CustomField
21 21
  has_and_belongs_to_many :projects, :join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}", :foreign_key => "custom_field_id", :autosave => true
22 22
  has_and_belongs_to_many :trackers, :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :foreign_key => "custom_field_id", :autosave => true
23
  has_many :issues, :through => :issue_custom_values
24 23

  
25 24
  safe_attributes 'project_ids',
26 25
    'tracker_ids'
    (1-1/1)