N°7216 import improves error handling missing or null data - case if an ext key use more than 1 field for reconciliation

This commit is contained in:
Anne-Cath
2025-02-06 17:28:33 +01:00
parent 01a17b5f9b
commit efd117eac7

View File

@@ -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);