浏览代码

Fixed regression introduced a few months ago when reworking the dashboard edition (after the release of 2.0.1)

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

+ 2 - 1
application/dashboard.class.inc.php

@@ -733,7 +733,8 @@ EOF
 		foreach($aDashlets as $sDashletClass => $aDashletInfo)
 		{
 			$oSubForm = new DesignerForm();
-			$oDashlet = new $sDashletClass($this->oMetaModel, 0);
+			$oMetaModel = new ModelReflectionRuntime();
+			$oDashlet = new $sDashletClass($oMetaModel, 0);
 			$oDashlet->GetPropertiesFieldsFromOQL($oSubForm, $sOQL);
 			
 			$oSelectorField->AddSubForm($oSubForm, $aDashletInfo['label'], $aDashletInfo['class']);