From 86736b20466d0436054b257dfbc2b3b94d58caec Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 14 Aug 2019 15:26:56 +1200 Subject: [PATCH] Fix unreleased regression on import https://github.com/civicrm/civicrm-core/commit/2adc819d0e59d71ffcf14c6799a379f108b07d60 made the code a little more readable but changed the indexing from 0-based to column based. See https://pear.php.net/manual/en/package.database.db.db-common.setfetchmode.php THis can be replicated by trying to update an existing mapping --- CRM/Contact/Import/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Import/Parser.php b/CRM/Contact/Import/Parser.php index 24de92ccc7..c0fac2ee07 100644 --- a/CRM/Contact/Import/Parser.php +++ b/CRM/Contact/Import/Parser.php @@ -185,7 +185,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { $result = CRM_Core_DAO::executeQuery($query); while ($result->fetch()) { - $values = $result->toArray(); + $values = array_values($result->toArray()); $this->_rowCount++; /* trim whitespace around the values */ -- 2.25.1