﻿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
11730	ifequal tag incorrectly renders block tag	psmith	nobody	"If a child template overrides a {{{block}}} tag within an {{{ifequal}}} tag with arguments that are equal to each other, the output will be the contents of the parent's {{{block}}}.

The behavior should be the same as a {{{block}}} tag within an {{{if}}} tag that evaluates to ""true"", which works as expected. 

Example:

Parent template:

{{{
<h2>This is the {% block which %}parent{% endblock %}</h2>
<p>Block output: {% block foo %}Parent!{% endblock %}</p>
<p>Go to: <a href=""/"">Parent</a> | <a href=""/child/"">Child</a></p>
}}}

Child template:

{{{
{% extends ""parent.html"" %}

{% block which %}child{% endblock %}

{% ifequal 1 1 %}
{% block foo %}Child!{% endblock %}
{% endifequal %}
}}}

The reason for the bug is that the {{{IfEqualNode}}} should override {{{get_nodes_by_type()}}} and {{{__iter()__}}} because its node lists are in two different instance variables."		closed	Template system	1.1		duplicate			Accepted	1	0	1	0	0	0
