Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix: graphviz_me: When used with versioned wiki content.

  • Loading branch information...
commit d9ddbe1e12b330ec7c397d4f9222b4c59582132c 1 parent 51c59ef
@tckz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/helpers/wiki_graphviz_helper.rb
View
3  app/helpers/wiki_graphviz_helper.rb
@@ -342,7 +342,7 @@ def graphviz(args)
def graphviz_me(args, title)
begin
- if !@content.nil? && !@content.kind_of?(WikiContent)
+ if !@content.nil? && !@content.kind_of?(WikiContent) && !@content.kind_of?(WikiContent::Version)
raise "This macro can be described in wiki page only."
end
@@ -369,6 +369,7 @@ def graphviz_me(args, title)
set_macro_params(args)
macro_params = @macro_params.clone
macro_params[:title] = title
+ macro_params[:version] = @view.params[:version]
@view.controller.countup_macro_index()
@view.controller.make_macro_output_by_text(text, macro_params, using_data_scheme)
rescue => e
Please sign in to comment.
Something went wrong with that request. Please try again.