(Retrofit from trunk) Portal : ManageBrick crashing when displaying an abstract class with child classes attributes

SVN:2.3[4427]
This commit is contained in:
Guillaume Lajarige
2016-09-30 07:15:17 +00:00
parent b3ca6f776e
commit cc461630ea

View File

@@ -273,7 +273,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);