Custom Macro ignores default boolean parameter

XMLWordPrintable

    • 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");
          }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Deleted Account (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: