From efd117eac7e64fe27a252b5f3ad441b27094826a Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Thu, 6 Feb 2025 17:28:33 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07216=20import=20improves=20error=20handl?= =?UTF-8?q?ing=20missing=20or=20null=20data=20-=20case=20if=20an=20ext=20k?= =?UTF-8?q?ey=20use=20more=20than=201=20field=20for=20reconciliation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/bulkchange.class.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index de5960e86..d8bad086c 100644 --- a/core/bulkchange.class.inc.php +++ b/core/bulkchange.class.inc.php @@ -1236,7 +1236,10 @@ class BulkChange $iPreviousTimeLimit = ini_get('max_execution_time'); $iLoopTimeLimit = MetaModel::GetConfig()->Get('max_execution_time_per_loop'); - $iNBFields = count($this->m_aAttList) + count($this->m_aExtKeys); + $iNBFields = count($this->m_aAttList); + foreach ($this->m_aExtKeys as $aReconcilKeys) { + $iNBFields += count($aReconcilKeys); + } // Avoid too many events cmdbAbstractObject::SetEventDBLinksChangedBlocked(true);