mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
User picture: Update contact's image attribute with preferences' placeholder so it can be used elsewhere
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
use Combodo\iTop\Controller\AjaxRenderController;
|
||||
use Combodo\iTop\Controller\Base\Layout\ActivityPanelController;
|
||||
use Combodo\iTop\Controller\PreferencesController;
|
||||
use Combodo\iTop\Renderer\Console\ConsoleBlockRenderer;
|
||||
use Combodo\iTop\Renderer\Console\ConsoleFormRenderer;
|
||||
|
||||
@@ -2736,6 +2737,24 @@ EOF
|
||||
$oPage->add(json_encode($aResult));
|
||||
break;
|
||||
|
||||
//--------------------------------
|
||||
// Preferences
|
||||
//--------------------------------
|
||||
case 'preferences_set_user_picture':
|
||||
$oPage = new JsonPage();
|
||||
try {
|
||||
$aResult = PreferencesController::SetUserPicture();
|
||||
$aResult['success'] = true;
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
$aResult = [
|
||||
'success' => false,
|
||||
'error_message' => $oException->getMessage(),
|
||||
];
|
||||
}
|
||||
$oPage->SetData($aResult);
|
||||
break;
|
||||
|
||||
//--------------------------------
|
||||
// Activity panel
|
||||
//--------------------------------
|
||||
|
||||
Reference in New Issue
Block a user