From d22fb8344396b7cb49cdc14f21366854c72a10df Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 23 Mar 2017 14:52:57 +0000 Subject: [PATCH] N.736 Ugly labels when hovering bar charts SVN:trunk[4617] --- application/displayblock.class.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index ef876a1cb..ab4b0a350 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -1,5 +1,5 @@ GetForLink(); $aGroupBy = array(); - $aLabels = array(); $iTotalCount = 0; $aValues = array(); $aURLs = array(); @@ -968,7 +967,6 @@ EOF { $sValue = $aRow['grouped_by_1']; $sHtmlValue = $oGroupByExp->MakeValueLabel($this->m_oFilter, $sValue, $sValue); - $aLabels[$iRow] = strip_tags($sHtmlValue); $aGroupBy[(int)$iRow] = (int) $aRow['_itop_count_']; $iTotalCount += $aRow['_itop_count_']; $aValues[] = array('label' => html_entity_decode(strip_tags($sHtmlValue), ENT_QUOTES, 'UTF-8'), 'label_html' => $sHtmlValue, 'value' => (int) $aRow['_itop_count_']); @@ -988,7 +986,7 @@ EOF $aNames = array(); foreach($aValues as $idx => $aValue) { - $aNames[$idx] = $aValue['label_html']; + $aNames[$idx] = $aValue['label']; } $sJSNames = json_encode($aNames);