浏览代码

N°583.2 Fixed regression introduced in r4861.

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

+ 4 - 4
core/bulkchange.class.inc.php

@@ -1,5 +1,5 @@
 <?php
-// Copyright (C) 2010-2015 Combodo SARL
+// Copyright (C) 2010-2017 Combodo SARL
 //
 //   This file is part of iTop.
 //
@@ -468,10 +468,12 @@ class BulkChange
 		//
 		foreach ($this->m_aAttList as $sAttCode => $iCol)
 		{
+            $oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $sAttCode);
+
 			// skip the private key, if any
 			if ($sAttCode == 'id') continue;
 			// skip reconciliation keys
-			if (in_array($sAttCode, $this->m_aReconcilKeys)) continue;
+			if (!$oAttDef->IsWritable() && in_array($sAttCode, $this->m_aReconcilKeys)){ continue; }
 
 			$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $sAttCode);
 			$aReasons = array();
@@ -1308,5 +1310,3 @@ EOF
 	}	
 }
 
-
-?>