CRM-10551: Allow deletion of blanked location-based fields
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 25 Feb 2015 15:42:53 +0000 (15:42 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 25 Feb 2015 15:42:53 +0000 (15:42 +0000)
CRM/Contact/BAO/Contact.php

index 26cef83f16af3012875ec54174ecc74199b67e2a..5a4d12a392f7a92f840059998fdacfceda61df80 100644 (file)
@@ -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);
     }