浏览代码

Allow non-integer ranks on dashlets/cells

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2366 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
fe37e2af26
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/dashboard.class.inc.php

+ 2 - 2
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);