Ian province abbreviation patch - issue 724
[civicrm-core.git] / CRM / Contact / Form / Inline / Website.php
index c75d05b4954cf9eb2a3b266f2fce0b48fbe820d9..3f34c369e2eb48895d79d4faf42e88272459e80c 100644 (file)
@@ -116,6 +116,11 @@ class CRM_Contact_Form_Inline_Website extends CRM_Contact_Form_Inline {
   public function postProcess() {
     $params = $this->exportValues();
 
+    foreach ($this->_websites as $count => $value) {
+      if (!empty($value['id']) && isset($params['website'][$count])) {
+        $params['website'][$count]['id'] = $value['id'];
+      }
+    }
     // Process / save websites
     CRM_Core_BAO_Website::create($params['website'], $this->_contactId, TRUE);