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

[55932] Diff between the two selected versions of a page of a wiki

nsalguero7c45fe7403e1
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index d0b646e7df9..afbcb3eb10e 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -260,7 +260,7 @@ class WikiController < ApplicationController
end
def diff
- if (@diff = @page.diff(params[:version], params[:version_from]))
+ if (@diff = @page.diff(params[:version_to], params[:version_from]))
@html_diff = HTMLDiff::DiffBuilder.new(
helpers.format_text(@diff.content_from.data.text, disable_macro_expansion: true),
helpers.format_text(@diff.content_to.data.text, disable_macro_expansion: true)