mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 08:14:20 +00:00
WikiController raises a undefined method custom_workflow_messages' for #<WikiContentVersion:0x00007f7b45c567d8> error if @content` assigned to the WikiContentVersion. Since plugin doesn't support WikiContentVersion just skip it.
This commit is contained in:
parent
1798671c8b
commit
d1cf47c8c6
@ -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