Fix unreleased regression from strict typing
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 21 May 2022 09:29:02 +0000 (21:29 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 21 May 2022 09:31:41 +0000 (21:31 +1200)
CRM/Contact/Import/Parser/Contact.php

index 2364e686314da312647275ee90b257e842b9547c..ab4f54997aba5bcc87138c9ff800fe3e4c7ee339 100644 (file)
@@ -2928,7 +2928,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
     // Time to see if we can find an existing contact ID to make this an update
     // not a create.
     if ($extIDMatch || $this->isUpdateExistingContacts()) {
-      return $this->getPossibleContactMatch($params, $extIDMatch, $this->getSubmittedValue('dedupe_rule_id'));
+      return $this->getPossibleContactMatch($params, $extIDMatch, $this->getSubmittedValue('dedupe_rule_id') ?: NULL);
     }
     return NULL;
   }