diff --git a/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml b/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml index 6e0acee097..ea60cee983 100755 --- a/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml +++ b/datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml @@ -115,7 +115,7 @@ $this->SetIfNull('user_id', $iUserId); // Get Contact from user - $oUser = MetaModel::GetObject('User', $iUserId); + $oUser = MetaModel::GetObject('User', $iUserId, true, true); $this->SetIfNull('contact_id', $oUser->Get('contactid')); } return parent::DBInsertNoReload();