mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -298,11 +298,10 @@ if (!class_exists('StructureInstaller'))
|
||||
|
||||
$oTriggersSet = new DBObjectSet($oTriggersSearch);
|
||||
while ($oTrigger = $oTriggersSet->Fetch()) {
|
||||
$oMentionedFilter = DBSearch::FromOQL($oTrigger->Get('mentioned_filter'));
|
||||
$sMentionedClass = $oMentionedFilter->GetClass();
|
||||
|
||||
// If mentioned class is not a Person, ignore
|
||||
if (is_a($sMentionedClass, $sPersonClass, true) === false) {
|
||||
$oMentionedFilter = DBSearch::FromOQL($oTrigger->Get('mentioned_filter'));
|
||||
if (!is_null($oMentionedFilter) && is_a($oMentionedFilter->GetClass(), $sPersonClass, true) === false) {
|
||||
SetupLog::Info("|- Action \"{$oAction->GetName()}\" NOT LINKED to existing trigger \"{$oTrigger->GetName()}\". (mentioned class \"{$oMentionedFilter->GetClass()}\")");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user