-
Bug
-
Resolution: Won't Fix
-
Low
-
None
-
5.5.2
In User Macro (template), the IF statement always returns true.
Steps to Replicate
- Create a simple Rendered User Macro with the following sample template:
## @param PM:type=boolean #if($paramPM) PM is <b>true</b> #else PM is <b>false</b> #end
- Insert the user macro in a page
- In the Macro Editor, the default state of the checkbox is unticked
- Save the page
- The page shows 'PM is true' instead of 'PM is false'
Workaround
Define the default value of parameter in the IF statement:
## @param PM:type=boolean #if($paramPM == "true") PM is <b>true</b> #else PM is <b>false</b> #end