-
Bug
-
Resolution: Obsolete
-
Medium
-
5.5.3, 5.7.3
-
Severity 2 - Major
-
Custom macros ignores the default value. The iscolortext parameter is NOT sent to the execute method.
(Actually, the isshowborder is not sent either. I was expecting a "false" value.)
<xhtml-macro name="my-macro" key="my-macro" class="InternalContentMacro"> <parameters> <parameter name="iscolortext" type="boolean" default="true"/> <parameter name="isshowborder" type="boolean"/> </parameters> </xhtml-macro>
public class InternalContentMacro implements Macro { @Override public String execute(Map<String, String> params, String bodyContent, ConversionContext conversionContext) throws MacroExecutionException { String isColorText = params.get("iscolortext"); String isShowBorder = params.get("isshowborder"); } }
- is cloned from
-
CONFSERVER-23704 Default user macro parameters ignored
- Gathering Impact
- is duplicated by
-
CONFSERVER-26992 Default param not showing on user macros
- Closed
- is related to
-
CONFSERVER-23544 default macro parameter not accessible within EditorImagePlaceholder#getImagePlaceholder
- Closed
- links to
(1 mentioned in)