mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 08:12:26 +02:00
Portal: Performance optimization in BrowseBrick by removing unnecessary objects reload.
SVN:2.3[4680]
This commit is contained in:
@@ -41,6 +41,7 @@ use \Combodo\iTop\Portal\Brick\BrowseBrick;
|
|||||||
class BrowseBrickController extends BrickController
|
class BrowseBrickController extends BrickController
|
||||||
{
|
{
|
||||||
const LEVEL_SEPARATOR = '-';
|
const LEVEL_SEPARATOR = '-';
|
||||||
|
public static $aOptionalAttributes = array('tooltip_att');
|
||||||
|
|
||||||
public function DisplayAction(Request $oRequest, Application $oApp, $sBrickId, $sBrowseMode = null, $sDataLoading = null)
|
public function DisplayAction(Request $oRequest, Application $oApp, $sBrickId, $sBrowseMode = null, $sDataLoading = null)
|
||||||
{
|
{
|
||||||
@@ -285,6 +286,15 @@ class BrowseBrickController extends BrickController
|
|||||||
$aTmpColumnAttrs[] = $aTmpField['code'];
|
$aTmpColumnAttrs[] = $aTmpField['code'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Optional attributes
|
||||||
|
foreach(static::$aOptionalAttributes as $sOptionalAttribute)
|
||||||
|
{
|
||||||
|
if($aTmpLevelProperties[$sOptionalAttribute] !== null)
|
||||||
|
{
|
||||||
|
$aTmpColumnAttrs[] = $aTmpLevelProperties[$sOptionalAttribute];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$aColumnAttrs[$sTmpClassAlias] = $aTmpColumnAttrs;
|
$aColumnAttrs[$sTmpClassAlias] = $aTmpColumnAttrs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user