From 53f4de9a8a9d5adad69f9299383bed53bce2e913 Mon Sep 17 00:00:00 2001
From: Benaka Moorthi <benaka.moorthi@gmail.com>
Date: Sun, 23 Jun 2013 00:42:46 -0700
Subject: [PATCH] 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.

---
 plugins/CoreHome/templates/datatable_cell.twig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/CoreHome/templates/datatable_cell.twig b/plugins/CoreHome/templates/datatable_cell.twig
index dab9a6401d..d18db8c569 100644
--- a/plugins/CoreHome/templates/datatable_cell.twig
+++ b/plugins/CoreHome/templates/datatable_cell.twig
@@ -1,4 +1,4 @@
-{% 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 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 }}'>
@@ -20,4 +20,4 @@
 {% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %}
     </a>
 {% endif %}
-{% if row.metadata[tooltipIndex] is defined %}</span>{% endif %}
\ No newline at end of file
+{% if row.metadata[tooltipIndex] is defined %}</span>{% endif %}
-- 
GitLab