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
Order viewpoints by creation date asc.
Wieland Lindenthala93bf6d33634
diff --git a/modules/bim/app/models/bim/bcf/issue.rb b/modules/bim/app/models/bim/bcf/issue.rbindex dbf8bcc519d..25d477ba56f 100644--- a/modules/bim/app/models/bim/bcf/issue.rb+++ b/modules/bim/app/models/bim/bcf/issue.rb@@ -9,7 +9,11 @@ module Bim::Bcfbelongs_to :work_packagehas_one :project, through: :work_package- has_many :viewpoints, foreign_key: :issue_id, class_name: "Bim::Bcf::Viewpoint", dependent: :destroy+ has_many :viewpoints,+ -> { order(created_at: :asc) },+ foreign_key: :issue_id,+ class_name: "Bim::Bcf::Viewpoint",+ dependent: :destroyhas_many :comments, foreign_key: :issue_id, class_name: "Bim::Bcf::Comment", dependent: :destroyafter_update :invalidate_markup_cache