mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3629 - Activity panel: Add possibility to close the panel
This commit is contained in:
@@ -2752,14 +2752,32 @@ EOF
|
||||
$aRenderRes = $oRenderer->Render($aRequestedFields);
|
||||
|
||||
$aResult['form']['updated_fields'] = $aRenderRes;
|
||||
} catch (Exception $e)
|
||||
{
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$aResult['error'] = $e->getMessage();
|
||||
}
|
||||
$oPage->add(json_encode($aResult));
|
||||
break;
|
||||
|
||||
// Activity panel
|
||||
/** @internal */
|
||||
case 'save_activity_panel_state':
|
||||
$oPage->SetContentType('application/json');
|
||||
try {
|
||||
$oAjaxRenderController::SaveActivityPanelState();
|
||||
$aResult = [
|
||||
'success' => true,
|
||||
];
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
$aResult = [
|
||||
'success' => false,
|
||||
'error_message' => $oException->getMessage(),
|
||||
];
|
||||
}
|
||||
$oPage->add(json_encode($aResult));
|
||||
break;
|
||||
|
||||
case 'add_caselog_entries':
|
||||
$oPage->SetContentType('application/json');
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user