N°4959 Fix graph dashlet not refreshed

Previous fix in e4501389 was incomplete, cause passing empty as id isn't handled in called method.
This commit is contained in:
Pierre Goiffon
2022-03-18 15:16:52 +01:00
parent a26c8fbd48
commit 9d2c89f118

View File

@@ -687,7 +687,7 @@ try
if ($sFilter != '') {
$oFilter = DBObjectSearch::FromOQL($sFilter);
$oDisplayBlock = new DisplayBlock($oFilter, 'chart_ajax', false);
$oBlock = $oDisplayBlock->GetRenderContent($oPage, $aParams, '');
$oBlock = $oDisplayBlock->GetRenderContent($oPage, $aParams, $aParams['currentId']);
$sChartType = isset($aParams['chart_type']) ? $aParams['chart_type'] : 'pie';
switch ($sChartType) {
case 'bars':