Skip to content

Commit 525b8e8

Browse files
authored
Merge pull request #285 from red-soft-ru/devel
Viewing wiki version raises a error
2 parents 1798671 + d1cf47c commit 525b8e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/redmine_custom_workflows/patches/controllers/wiki_controller_patch.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def get_model_objects
7373
elsif @page
7474
objects = [@page]
7575
end
76-
if @content
76+
# @content either WikiContent or WikiContentVersion
77+
# but plugin does not patch nor work with WikiContentVersion
78+
if @content.is_a? WikiContent
7779
objects ||= []
7880
objects << @content
7981
end

0 commit comments

Comments
 (0)