Merge pull request #285 from red-soft-ru/devel

Viewing wiki version raises a error
This commit is contained in:
Karel Pičman 2022-11-08 14:23:38 +01:00 committed by GitHub
commit 525b8e8169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,9 @@ module RedmineCustomWorkflows
elsif @page elsif @page
objects = [@page] objects = [@page]
end end
if @content # @content either WikiContent or WikiContentVersion
# but plugin does not patch nor work with WikiContentVersion
if @content.is_a? WikiContent
objects ||= [] objects ||= []
objects << @content objects << @content
end end