﻿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
2303	[patch] Recent break to template resolve_variable with booleans	anonymous	Adrian Holovaty	"Unable to evaluate ""True"" and ""False"" values inside an ifequal tag. The tag ""{% ifequal 0 False %}"" results in this exception:

{{{
Traceback (most recent call last):
File ""/home/pete/src/osrc/django/django/template/__init__.py"" in render_node
  706. result = node.render(context)
File ""/home/pete/src/osrc/django/django/template/defaulttags.py"" in render
  155. val2 = resolve_variable(self.var2, context)
File ""/home/pete/src/osrc/django/django/template/__init__.py"" in resolve_variable
  664. return current

  UnboundLocalError at /
  local variable 'current' referenced before assignment
}}}

The special cases for False and True do not set the local ""current"" variable,
which gets returned at the end of the function.

Looks like bug crept in from changeset:3269
"	defect	closed	Template system	dev	major	fixed			Unreviewed	1	0	0	0	0	0
