﻿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
11242	templates: block tag can be nested in if but not in ifequal	piotr.findeisen@…	nobody	"(Applies to revision 10865)

Sometimes when template {{{B}}} extends template {{{A}}}, it can't redefine block contents.

The following does not work ('bbb' is displayed or nothing, depending on {{{a}}} and {{{b}}})

 * a.html
{{{
{% ifequal a b %}
 {% block X %} zzz {% endblock %}
{% endif %}
}}}

 * b.html
{{{
{% extends ""a.html"" %}
{% block X %} bbb {% endblock %}
}}}

While this does ({{{ifequal}}} replaced with {{{if}}}):

 * a.html
{{{
{% if a %}
 {% block X %} zzz {% endblock %}
{% endif %}
}}}

 * b.html
{{{
{% extends ""a.html"" %}
{% block X %} bbb {% endblock %}
}}}
"		closed	Template system	dev		duplicate	template, block, if, ifequal		Unreviewed	0	0	0	0	0	0
