From 26bd04857dddcbae1d01744ff0f7a739ddac73b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Thu, 5 Oct 2017 13:30:43 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01098=20Fix=20CSV=20import=20by=20id.=20F?= =?UTF-8?q?ix=20a=20regression=20introduced=20in=20rev=204885.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4969] --- core/bulkchange.class.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index 08be60d0f..6e9b918c2 100644 --- a/core/bulkchange.class.inc.php +++ b/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; }