OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Correctly mark work_package_id as ignored
Klaus Zandersb3db476d5ea4
diff --git a/modules/costs/app/models/cost_entry.rb b/modules/costs/app/models/cost_entry.rbindex 732f83ebc6d..9e0ee110d65 100644--- a/modules/costs/app/models/cost_entry.rb+++ b/modules/costs/app/models/cost_entry.rb@@ -31,7 +31,7 @@class CostEntry < ApplicationRecordALLOWED_ENTITY_TYPES = %w[WorkPackage].freeze- self.ignored_columns += %w[work_package_id]+ self.ignored_columns += [:work_package_id]belongs_to :projectbelongs_to :entity, polymorphic: truediff --git a/modules/costs/app/models/time_entry.rb b/modules/costs/app/models/time_entry.rbindex d4f5febc8ca..17c9b443125 100644--- a/modules/costs/app/models/time_entry.rb+++ b/modules/costs/app/models/time_entry.rb@@ -31,6 +31,8 @@class TimeEntry < ApplicationRecordALLOWED_ENTITY_TYPES = %w[WorkPackage Meeting].freeze+ self.ignored_columns += [:work_package_id]+# could have used polymorphic association# project association here allows easy loading of time entries at project level with one database tripbelongs_to :project