-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 3.1
-
Component/s: None
In the rare situation where a macro has multiple un-named parameters, a slightly different parameter map is generated between Rich Text and Wiki Markup.
See macro-browser.js in conf-webapp, particularly the functions getSelectedMacro and parseMacro.
getSelectedMacro is invoked by the wiki markup editor, and this internally calls parseMacro. The Rich Text Editor calls parseMacro directly.
The problem occurs because getSelectedMacro clears out the macro parameters parsed by parseMacro and re-creates the parameter list again from scratch, using a slightly different algorithm.
We think that the correct approach is to move the parameter parsing in getSelectedMacro into parseMacro, replacing its method.