summaryrefslogtreecommitdiffstats
path: root/app/models/issue_custom_field.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue_custom_field.rb')
-rw-r--r--app/models/issue_custom_field.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue_custom_field.rb b/app/models/issue_custom_field.rb
index fb7accd34..f0a7871b0 100644
--- a/app/models/issue_custom_field.rb
+++ b/app/models/issue_custom_field.rb
@@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class IssueCustomField < CustomField
- has_and_belongs_to_many :projects, :join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}", :foreign_key => "custom_field_id"
- has_and_belongs_to_many :trackers, :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :foreign_key => "custom_field_id"
+ has_and_belongs_to_many :projects, :join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}", :foreign_key => "custom_field_id", :autosave => true
+ has_and_belongs_to_many :trackers, :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :foreign_key => "custom_field_id", :autosave => true
has_many :issues, :through => :issue_custom_values
safe_attributes 'project_ids',