mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 08:14: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
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user