-
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
[CONFSERVER-33964] IF Statement Always Returns TRUE In User Macro
Workflow | Original: JAC Bug Workflow v3 [ 2897944 ] | New: CONFSERVER Bug Workflow v4 [ 3002378 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2789936 ] | New: JAC Bug Workflow v3 [ 2897944 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2720565 ] | New: JAC Bug Workflow v2 [ 2789936 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2384060 ] | New: JAC Bug Workflow [ 2720565 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2278299 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2384060 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219960 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 2278299 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154770 ] | New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219960 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 1937352 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154770 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v3 [ 1736507 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 1937352 ] |
I know this is an old issue and it was closed, but how can we vote on it if it's marked closed?