diff --git a/application/Espo/Controllers/Import.php b/application/Espo/Controllers/Import.php index 1c2fe76c26..6a3067381a 100644 --- a/application/Espo/Controllers/Import.php +++ b/application/Espo/Controllers/Import.php @@ -138,6 +138,7 @@ class Import extends \Espo\Core\Controllers\Record 'currency' => $data['currency'], 'defaultValues' => $data['defaultValues'], 'action' => $data['action'], + 'skipDuplicateChecking' => $data['skipDuplicateChecking'] ); if (array_key_exists('updateBy', $data)) { diff --git a/application/Espo/Resources/i18n/en_US/Import.json b/application/Espo/Resources/i18n/en_US/Import.json index 729c4bd117..9663d38d27 100644 --- a/application/Espo/Resources/i18n/en_US/Import.json +++ b/application/Espo/Resources/i18n/en_US/Import.json @@ -49,7 +49,8 @@ "Single Quote": "Single Quote", "Imported": "Imported", "Duplicates": "Duplicates", - "Updated": "Updated" + "Updated": "Updated", + "Skip searching for duplicates": "Skip searching for duplicates" }, "messages": { "utf8": "Should be UTF-8 encoded", diff --git a/application/Espo/Services/Import.php b/application/Espo/Services/Import.php index 0e3ba3968d..0000ca7f1e 100644 --- a/application/Espo/Services/Import.php +++ b/application/Espo/Services/Import.php @@ -527,7 +527,10 @@ class Import extends \Espo\Services\Record try { if ($isNew) { - $isDuplicate = $recordService->checkEntityForDuplicate($entity); + $isDuplicate = false; + if (empty($params['skipDuplicateChecking'])) { + $isDuplicate = $recordService->checkEntityForDuplicate($entity); + } } if ($entity->id) { $sql = $this->getEntityManager()->getRepository($entity->getEntityType())->deleteFromDb($entity->id, true); diff --git a/client/res/templates/import/step-1.tpl b/client/res/templates/import/step-1.tpl index 4a1bbb01dc..8383c30c77 100644 --- a/client/res/templates/import/step-1.tpl +++ b/client/res/templates/import/step-1.tpl @@ -110,6 +110,14 @@ +