Merge remote-tracking branch 'refs/remotes/origin/support/3.0' into support/3.1

This commit is contained in:
jf-cbd
2024-04-30 08:14:11 +02:00

View File

@@ -1113,6 +1113,7 @@ EOF
if ($oDashlet->IsFormRedrawNeeded()) { if ($oDashlet->IsFormRedrawNeeded()) {
$oForm = $oDashlet->GetForm(); // Rebuild the form since the values/content changed $oForm = $oDashlet->GetForm(); // Rebuild the form since the values/content changed
$oForm->SetSubmitParams(utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php', array('operation' => 'update_dashlet_property', 'extra_params' => $aExtraParams)); $oForm->SetSubmitParams(utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php', array('operation' => 'update_dashlet_property', 'extra_params' => $aExtraParams));
$sHtml = $oForm->RenderAsPropertySheet($oPage, true, '.itop-dashboard');
$sHtml= json_encode($sHtml); $sHtml= json_encode($sHtml);
$oPage->add_script("$('#dashlet_$sDashletId').html({$sHtml});"); $oPage->add_script("$('#dashlet_$sDashletId').html({$sHtml});");
} }