From 0c3e839381fb70ad7856576de4fc1da17278dfa2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 8 Mar 2024 17:17:50 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07303=20-=20Fix=20failure=20to=20add=20at?= =?UTF-8?q?tachment=20in=20portal=20due=20to=20regression=20from=20e830c90?= =?UTF-8?q?3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-attachments/datamodel.itop-attachments.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();