mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°880: fix the bugfix [r5737]
- previous bugfix altered the cron frequency, this is not the desired behaviour, now the conf alter the lifetime of drafts's attachments - apply for both inline images and attachments SVN:trunk[5795]
This commit is contained in:
@@ -1455,7 +1455,7 @@ class ObjectController extends AbstractController
|
||||
{
|
||||
$oDocument = utils::ReadPostedDocument($sFieldName);
|
||||
$oAttachment = MetaModel::NewObject('Attachment');
|
||||
$oAttachment->Set('expire', time() + 3600); // one hour...
|
||||
$oAttachment->Set('expire', time() + MetaModel::GetConfig()->Get('draft_attachments_lifetime')); // one hour...
|
||||
$oAttachment->Set('temp_id', $sTempId);
|
||||
$oAttachment->Set('item_class', $sObjectClass);
|
||||
$oAttachment->SetDefaultOrgId();
|
||||
|
||||
Reference in New Issue
Block a user