﻿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
37038	{% extends %}/{% block %} doesn't work as expected with {% partialdef %}/{% partial %}	Christophe Henry		"First, please excuse me if this edge-case is actually documented or if there's already an issue documenting it. 

I recently had the use case where I needed to duplicate a block of buttons present a the top of a form, to the bottom of it, on a template that was extended by another to add a few extra buttons.

I wanted to use the newly added `{% partialdef %}` to solve the problem but realised `{% partialdef %}` and `{% block %}`. Take the flowing example:

{{{

{% partialdef btns inline %} 
  {% block btns_block %}
    <button type=""button"">Save</button>
    <button type=""button"">Publish</button>
  {% endblock %}   
{% endpartialdef %}

<!-- later -->
{% partial btns %}

}}}

And second template extending the previous:

{{{

{% block btns_block %}
    <button type=""button"">Cancel</button>
  <button type=""button"">Save</button>    
  <button type=""button"">Publish</button>
{% endblock %} 

}}}

In this situation, the partial will be correctly overriden during the first usage but not during the second. In the extending template, the cancel button is present at the top of the page but not at the button.

If `{% partialdef %}` is not inline, the cancel button is not even there at the top of the extending template.

I created a minimal reproducing example to illustrate this problem: https://github.com/christophehenry/extends-partials-bug. "	Bug	closed	Template system	6.0	Normal	wontfix		Carlton Gibson Farhan Ali	Unreviewed	0	0	0	0	0	0
