diff --git a/datamodels/2.x/itop-attachments/main.itop-attachments.php b/datamodels/2.x/itop-attachments/main.itop-attachments.php index 30d1ba7c2..6e332a9fb 100644 --- a/datamodels/2.x/itop-attachments/main.itop-attachments.php +++ b/datamodels/2.x/itop-attachments/main.itop-attachments.php @@ -344,6 +344,7 @@ class AttachmentPlugIn implements iApplicationUIExtension, iApplicationObjectExt while ($oAttachment = $oSet->Fetch()) { $oTempAttachment = clone $oAttachment; + $oTempAttachment->Set('expire', time() + utils::GetConfig()->Get('draft_attachments_lifetime')); $oTempAttachment->Set('item_id', null); $oTempAttachment->Set('temp_id', $sTempId); $oTempAttachment->DBInsert();