Merge pull request #5252 from JKingsnorth/CRM-10551
[civicrm-core.git] / CRM / Contact / Form / Inline / Website.php
index 72cf288ac80aee5cdfc9d927df194a70f23ba5a8..3b60fe2800b66ceb03ed2e77f4006cc8133a97a3 100644 (file)
@@ -123,7 +123,10 @@ class CRM_Contact_Form_Inline_Website extends CRM_Contact_Form_Inline {
     $params = $this->exportValues();
 
     // Process / save websites
-    CRM_Core_BAO_Website::create($params['website'], $this->_contactId, TRUE);
+    // CRM-10551
+    // Use updateBlankLocInfo to overwrite blanked values of matching type
+    $params['updateBlankLocInfo'] = TRUE;
+    CRM_Core_BAO_Website::create($params, $this->_contactId);
 
     $this->log();
     $this->response();