Permalink
Browse files

Fix: graphviz_me: When used with versioned wiki content.

  • Loading branch information...
1 parent 51c59ef commit d9ddbe1e12b330ec7c397d4f9222b4c59582132c @tckz committed Feb 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit d9ddbe1

Please sign in to comment.