bug #15514 removed _self usage when not needed (fabpot)

This PR was merged into the 2.7 branch.

Discussion
----------

removed _self usage when not needed

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

As those calls are macros, there are already imported via the `from` call, so accessing them directly is not need, nor desired.

Commits
-------

3d0577d removed _self usage when not needed
This commit is contained in:
Fabien Potencier 2015-08-11 22:59:59 +02:00
commit b450c8481a

View File

@ -434,7 +434,7 @@
{% if data.children is not empty %}
<ul id="{{ data.id }}-children"{% if not expanded %} class="hidden"{% endif %}>
{% for childName, childData in data.children %}
{{ _self.form_tree_entry(childName, childData, false) }}
{{ form_tree_entry(childName, childData, false) }}
{% endfor %}
</ul>
{% endif %}
@ -673,6 +673,6 @@
</div>
{% for childName, childData in data.children %}
{{ _self.form_tree_details(childName, childData, forms_by_hash) }}
{{ form_tree_details(childName, childData, forms_by_hash) }}
{% endfor %}
{% endmacro %}