N°7303 - Fix failure to add attachment in portal due to regression from e830c903

This commit is contained in:
Molkobain
2024-03-08 17:17:50 +01:00
parent 5be386d03e
commit 0c3e839381

View File

@@ -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();