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
Updated by Pierre-Louis Bonicoli over 11 years ago
Patch attached.
Updated by Jean-Philippe Lang over 11 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.3.2
- Resolution set to Fixed
Fixed in r11761, thanks for pointing this out.
Actions