diff --git a/core/ormdocument.class.inc.php b/core/ormdocument.class.inc.php index f228ddd84..337b686e0 100644 --- a/core/ormdocument.class.inc.php +++ b/core/ormdocument.class.inc.php @@ -282,6 +282,7 @@ class ormDocument if($sContentDisposition === static::ENUM_CONTENT_DISPOSITION_ATTACHMENT) { $oDocument->IncreaseDownloadsCount(); $oObj->Set($sAttCode, $oDocument); + $oObj->AllowWrite(); $oObj->DBUpdate(); } }