From f14ebdb0192ce0991713c4bb6e39fc68e87f52b3 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 25 Oct 2012 14:55:47 +0000 Subject: [PATCH] Allow non-integer ranks on dashlets/cells SVN:trunk[2366] --- application/dashboard.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 1e2b10e88c..6023f4e0b0 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -67,7 +67,7 @@ abstract class Dashboard $oCellRank = $oCellNode->getElementsByTagName('rank')->item(0); if ($oCellRank) { - $iCellRank = (int)$oCellRank->textContent; + $iCellRank = (float)$oCellRank->textContent; } $oDashletsNode = $oCellNode->getElementsByTagName('dashlets')->item(0); $oDashletList = $oDashletsNode->getElementsByTagName('dashlet'); @@ -79,7 +79,7 @@ abstract class Dashboard $oRank = $oDomNode->getElementsByTagName('rank')->item(0); if ($oRank) { - $iRank = (int)$oRank->textContent; + $iRank = (float)$oRank->textContent; } $sId = $oDomNode->getAttribute('id'); $oNewDashlet = new $sDashletClass($sId);