﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17230	Broken boolean comparison in template 'if' '==' expression	anatoly techtonik <techtonik@…>	nobody	"I pass `closed` boolean variable to template, which can have three values - None, True, False. I want string `*****` to show only if closed is True.

{{{
_{{closed}}_
    {%if closed == True%} ***** {%endif%}
    {%if closed == 'True'%} ***** {%endif%}
}}}

I am surprised to see that `*****` output twice when `closed` is None, and doesn't show if `closed` boolean is set regardless of its value. I expect numerous complaints about that, but couldn't any open reports, so I imagine it is 'feature' of template engine, but for me such ugly feature is a bug.
"	Bug	closed	Template system	1.2	Normal	duplicate			Unreviewed	0	0	0	0	0	0
