mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Merge pull request #285 from red-soft-ru/devel
Viewing wiki version raises a error
This commit is contained in:
commit
525b8e8169
@ -73,7 +73,9 @@ module RedmineCustomWorkflows
|
||||
elsif @page
|
||||
objects = [@page]
|
||||
end
|
||||
if @content
|
||||
# @content either WikiContent or WikiContentVersion
|
||||
# but plugin does not patch nor work with WikiContentVersion
|
||||
if @content.is_a? WikiContent
|
||||
objects ||= []
|
||||
objects << @content
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user