Ver Fonte

Portal : ManageBrick crashing when displaying an abstract class with child classes attributes

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4426 a333f486-631f-4898-b8df-5754b55c2be0
glajarige há 8 anos atrás
pai
commit
058c68ab57

+ 1 - 1
datamodels/2.x/itop-portal-base/portal/src/controllers/managebrickcontroller.class.inc.php

@@ -290,7 +290,7 @@ class ManageBrickController extends BrickController
 			// - Check how many records there is.
 			// - Update $sDataLoading with its new value regarding the number of record and the threshold
 			$oCountSet = new DBObjectSet($oQuery);
-			$oCountSet->OptimizeColumnLoad(array($oQuery->GetClassAlias() => $aColumnsAttrs));
+			$oCountSet->OptimizeColumnLoad(array());
 			$fThreshold = (float) MetaModel::GetModuleSetting($oApp['combodo.portal.instance.id'], 'lazy_loading_threshold');
 			$sDataLoading = ($oCountSet->Count() > $fThreshold) ? AbstractBrick::ENUM_DATA_LOADING_LAZY : AbstractBrick::ENUM_DATA_LOADING_FULL;
 			unset($oCountSet);