mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2875 - Fix missing argument ":this" when submitting an entry in the activity panel
This commit is contained in:
@@ -613,7 +613,9 @@ class TriggerOnObjectMention extends TriggerOnObject
|
|||||||
$oSearch = DBObjectSearch::FromOQL($sFilter);
|
$oSearch = DBObjectSearch::FromOQL($sFilter);
|
||||||
$oSearch->AddCondition('id', $oObject->GetKey(), '=');
|
$oSearch->AddCondition('id', $oObject->GetKey(), '=');
|
||||||
$oSearch->AddCondition('finalclass', get_class($oObject), '=');
|
$oSearch->AddCondition('finalclass', get_class($oObject), '=');
|
||||||
$oSet = new DBObjectSet($oSearch);
|
|
||||||
|
$aParams = $oObject->ToArgs('this');
|
||||||
|
$oSet = new DBObjectSet($oSearch, [], $aParams);
|
||||||
$bRet = $oSet->CountExceeds(0);
|
$bRet = $oSet->CountExceeds(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user