浏览代码

Regresssion: properly compute & record the history of StopWatch's sub-items.

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

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

@@ -304,8 +304,8 @@ abstract class CMDBObject extends DBObject
 				//
 				foreach ($oAttDef->ListSubItems() as $sSubItemAttCode => $oSubItemAttDef)
 				{
-					$item_value = $oSubItemAttDef->GetValue($this);
-					$item_original = $oSubItemAttDef->GetValue($this, true);
+					$item_value = $oAttDef->GetSubItemValue($oSubItemAttDef->Get('item_code'), $value, $this);
+					$item_original = $oAttDef->GetSubItemValue($oSubItemAttDef->Get('item_code'), $original, $this);
 
 					if ($item_value != $item_original)
 					{