mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-12 20:44:14 +01:00
(Retrofit from trunk) Portal : ManageBrick crashing when displaying an abstract class with child classes attributes
SVN:2.3[4427]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user