Explorar o código

N°1098 Fix CSV import by id.
Fix a regression introduced in rev 4885.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4969 a333f486-631f-4898-b8df-5754b55c2be0

eespie %!s(int64=7) %!d(string=hai) anos
pai
achega
8808c7db04
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      core/bulkchange.class.inc.php

+ 3 - 2
core/bulkchange.class.inc.php

@@ -468,10 +468,11 @@ 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;
+
+			$oAttDef = MetaModel::GetAttributeDef($this->m_sClass, $sAttCode);
+
 			// skip reconciliation keys
 			if (!$oAttDef->IsWritable() && in_array($sAttCode, $this->m_aReconcilKeys)){ continue; }