PHRAS-2796_actionbar-enhancements_4.1

fix (contextual menu was rendered in toolbar)
This commit is contained in:
Jean-Yves Gaulier
2019-11-21 19:09:50 +01:00
parent 472a054919
commit 59a417bd59

View File

@@ -141,6 +141,7 @@
{% if plugins.actionbar is not empty %}
{% for plugin in plugins.actionbar %}
{% for k, menu in plugin.getActionBar() %}
{% if k != '_context_' %}
{% set m = menus[k]|default([]) %}
{% for action in menu %}
{% set m = m|merge([{
@@ -150,6 +151,7 @@
%}
{% endfor %}
{% set menus = menus|merge({(k) : m}) %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}