Actions
Defect #13821
closed"obj" parameter is not defined for macros used in description of documents
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Custom macros used in description of document don't receive a defined "obj
" parameter:
- in document view, "
object
" parameter is not used when "textilizable
" is called, so - "
obj
" variable is not defined and any macro is called with a not defined "obj
" - macros can not access to the document that is rendered
For testing, here is a macro:
Redmine::WikiFormatting::Macros.register do desc "test macro" macro :viewer do |obj, args| if obj 'ok' else 'nok' end end end
Files
Actions