mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°330 Improve \ormDocument::GetFormattedSize
* Fix typo in method name (many thanks @jbostoen !) * Use \utils::BytesToFriendlyFormat
This commit is contained in:
@@ -1164,7 +1164,7 @@ class ObjectController extends BrickController
|
||||
$aData['icon'] = utils::GetAbsoluteUrlAppRoot().'env-'.utils::GetCurrentEnvironment().'/itop-attachments/icons/image.png';
|
||||
$aData['att_id'] = $iAttId;
|
||||
$aData['preview'] = $oDocument->IsPreviewAvailable() ? 'true' : 'false';
|
||||
$aData['file_size'] = $oDocument->GetFormatedSize();
|
||||
$aData['file_size'] = $oDocument->GetFormattedSize();
|
||||
$aData['creation_date'] = $oAttachment->Get('creation_date');
|
||||
$aData['user_id_friendlyname'] = $oAttachment->Get('user_id_friendlyname');
|
||||
$aData['file_type'] = $oDocument->GetMimeType();
|
||||
|
||||
Reference in New Issue
Block a user