mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
📝 Attachment : add some @var on object init
This commit is contained in:
@@ -1145,6 +1145,7 @@ class ObjectController extends BrickController
|
||||
try
|
||||
{
|
||||
$oDocument = utils::ReadPostedDocument($sFieldName);
|
||||
/** @var \Attachment $oAttachment */
|
||||
$oAttachment = MetaModel::NewObject('Attachment');
|
||||
$oAttachment->Set('expire', time() + MetaModel::GetConfig()->Get('draft_attachments_lifetime')); // one hour...
|
||||
$oAttachment->Set('temp_id', $sTempId);
|
||||
|
||||
Reference in New Issue
Block a user