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

remove remains of wiki content

ulfertsd01884a0d8ae
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 7eeac39f40e..500e8f2aa73 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -138,7 +138,7 @@ class WikiPage < ApplicationRecord
end
def diff(version_to = nil, version_from = nil)
- version_to = version_to ? version_to.to_i : content.version
+ version_to = version_to ? version_to.to_i : version
version_from = version_from ? version_from.to_i : version_to - 1
version_to, version_from = version_from, version_to unless version_from < version_to