Skip to content

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

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.rb
index 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::Bcf
belongs_to :work_package
has_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: :destroy
has_many :comments, foreign_key: :issue_id, class_name: "Bim::Bcf::Comment", dependent: :destroy
after_update :invalidate_markup_cache