From 8d2914ef75390c327c1e14285078d379a20ecf50 Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Wed, 25 Feb 2015 15:42:53 +0000 Subject: [PATCH] CRM-10551: Allow deletion of blanked location-based fields --- CRM/Contact/BAO/Contact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 26cef83f16..5a4d12a392 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -1859,6 +1859,9 @@ ORDER BY civicrm_email.is_primary DESC"; } if ($contactID) { + // CRM-10551: Allow deletion of blanked location-based fields + $params['updateBlankLocInfo'] = TRUE; + $editHook = TRUE; CRM_Utils_Hook::pre('edit', 'Profile', $contactID, $params); } -- 2.25.1