From 2d4bfbff120f8453de96b4299180647835aee828 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 7 May 2022 09:48:10 +1200 Subject: [PATCH] Import - also export invalid as export error I found that rows that fail validation are marked 'invalid' rather than error & won't show on the preview screen. I guess I could check for invalid vs error separately - gets kinda weird though - if you leave them in the file you are importing surely they are still errors to see on the summary screen even though you knew they were invalid on the Preview? --- CRM/Import/DataSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Import/DataSource.php b/CRM/Import/DataSource.php index 311711e37d..419b19a5c1 100644 --- a/CRM/Import/DataSource.php +++ b/CRM/Import/DataSource.php @@ -459,7 +459,7 @@ abstract class CRM_Import_DataSource { protected function getStatusMapping(): array { return [ CRM_Import_Parser::VALID => ['imported', 'new'], - CRM_Import_Parser::ERROR => ['error'], + CRM_Import_Parser::ERROR => ['error', 'invalid'], CRM_Import_Parser::DUPLICATE => ['duplicate'], ]; } -- 2.25.1