From f585b0218804cf668a8a5b3deb7777dbd83276f3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 6 Jan 2021 13:54:33 -0500 Subject: [PATCH] Fix dev/core#2287 correctly check button to allow duplicate contact saving from profiles --- CRM/Profile/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index c6594fd4bd..af6642111c 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -994,7 +994,7 @@ class CRM_Profile_Form extends CRM_Core_Form { } // don't check for duplicates during registration validation: CRM-375 - if (!$register && empty($fields['_qf_Edit_upload_duplicate'])) { + if (!$register && !array_key_exists('_qf_Edit_upload_duplicate', $fields)) { // fix for CRM-3240 if (!empty($fields['email-Primary'])) { $fields['email'] = $fields['email-Primary'] ?? NULL; -- 2.25.1