Преглед на файлове

#1121: Regression: "filters" on Triggers had no effect. The regression was caused by the new way of computing placeholders "on the fly" (#803).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3671 a333f486-631f-4898-b8df-5754b55c2be0
dflaven преди 9 години
родител
ревизия
40472a7cd4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      core/trigger.class.inc.php

+ 2 - 2
core/trigger.class.inc.php

@@ -158,9 +158,9 @@ abstract class TriggerOnObject extends Trigger
 	public function DoActivate($aContextArgs)
 	{
 		$bGo = true;
-		if (isset($aContextArgs['this->id']))
+		if (isset($aContextArgs['this->object()']))
 		{
-			$bGo = $this->IsTargetObject($aContextArgs['this->id']);
+			$bGo = $this->IsTargetObject($aContextArgs['this->object()']->GetKey());
 		}
 		if ($bGo)
 		{