Skip to content
Extraits de code Groupes Projets
Valider 53f4de9a rédigé par Benaka Moorthi's avatar Benaka Moorthi
Parcourir les fichiers

Fix nebulous Twig error caused by indexing a variable w/ a Twig_Markup...

Fix nebulous Twig error caused by indexing a variable w/ a Twig_Markup instance. Should not use {% set %}...{% endset %} if value will be used as index.
parent 59d3b6d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
{% set tooltipIndex %}{{ column }}_tooltip{% endset %} {% set tooltipIndex = column ~ '_tooltip' %}
{% if row.metadata[tooltipIndex] is defined %}<span class="cell-tooltip" data-tooltip="{{ row.metadata[tooltipIndex] }}">{% endif %} {% if row.metadata[tooltipIndex] is defined %}<span class="cell-tooltip" data-tooltip="{{ row.metadata[tooltipIndex] }}">{% endif %}
{% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %} {% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %}
<a target="_blank" href='{% if row.metadata.url|slice(0,4) not in ['http','ftp:'] %}http://{% endif %}{{ row.metadata.url }}'> <a target="_blank" href='{% if row.metadata.url|slice(0,4) not in ['http','ftp:'] %}http://{% endif %}{{ row.metadata.url }}'>
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
{% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %} {% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %}
</a> </a>
{% endif %} {% endif %}
{% if row.metadata[tooltipIndex] is defined %}</span>{% endif %} {% if row.metadata[tooltipIndex] is defined %}</span>{% endif %}
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter