浏览代码

Bug fix: make sure that the log is properly filled when creating a notification.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@774 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 年之前
父节点
当前提交
e1caccbf8d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/action.class.inc.php

+ 1 - 1
core/action.class.inc.php

@@ -324,7 +324,7 @@ class ActionEmail extends ActionNotification
 			$oLog->Set('userinfo', UserRights::GetUser());
 			$oLog->Set('userinfo', UserRights::GetUser());
 			$oLog->Set('trigger_id', $oTrigger->GetKey());
 			$oLog->Set('trigger_id', $oTrigger->GetKey());
 			$oLog->Set('action_id', $this->GetKey());
 			$oLog->Set('action_id', $this->GetKey());
-			$oLog->Set('object_id', $aContextArgs['this->id']);
+			$oLog->Set('object_id', $aContextArgs['this->object()']->GetKey());
 
 
 			// Note: we have to secure this because those values are calculated
 			// Note: we have to secure this because those values are calculated
 			// inside the try statement, and we would like to keep track of as
 			// inside the try statement, and we would like to keep track of as