N°7552 - Fix mentions during object creation

This commit is contained in:
Molkobain
2024-07-17 10:30:28 +02:00
parent a4959cad15
commit f7ab9646d0

View File

@@ -872,6 +872,7 @@ JS;
$aSearchParams = ['needle' => "%$sNeedle%"];
// Retrieve restricting scopes from triggers if any
$oHostObj = null;
if (utils::IsNotNullOrEmptyString($sHostClass) && ($iHostId > 0)) {
$oHostObj = MetaModel::GetObject($sHostClass, $iHostId);
$aSearchParams['this'] = $oHostObj;