mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 08:12:26 +02:00
N°330 Improve \ormDocument::GetFormattedSize
* Fix typo in method name (many thanks @jbostoen !) * Use \utils::BytesToFriendlyFormat
This commit is contained in:
@@ -445,7 +445,7 @@ CSS
|
||||
$sFileName = utils::HtmlEntities($oDoc->GetFileName());
|
||||
$sTrId = $this->GetAttachmentContainerId($iAttachmentId);
|
||||
$sAttachmentMeta = $this->GetAttachmentHiddenInput($iAttachmentId, $bIsDeletedAttachment);
|
||||
$sFileSize = $oDoc->GetFormatedSize();
|
||||
$sFileSize = $oDoc->GetFormattedSize();
|
||||
$bIsTempAttachment = ($oAttachment->Get('item_id') === 0);
|
||||
$sAttachmentDate = '';
|
||||
if (!$bIsTempAttachment)
|
||||
|
||||
@@ -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