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

fix viewing version of meeting agenda/meetings

ulfertse11179452877
diff --git a/modules/meeting/app/controllers/meeting_contents_controller.rb b/modules/meeting/app/controllers/meeting_contents_controller.rb
index cc0ffb1f89f..207d64432b7 100644
--- a/modules/meeting/app/controllers/meeting_contents_controller.rb
+++ b/modules/meeting/app/controllers/meeting_contents_controller.rb
@@ -44,7 +44,7 @@ class MeetingContentsController < ApplicationController
before_action :authorize
def show
- if params[:id].present? && @content.version == params[:id].to_i
+ if params[:id].present? && @content.last_journal.version == params[:id].to_i
# Redirect links to the last version
redirect_to controller: '/meetings',
action: :show,