CRM-15964 fix - Tabbed custom data for contact subtypes don't save
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 13 Feb 2015 11:36:41 +0000 (17:06 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 13 Feb 2015 11:36:41 +0000 (17:06 +0530)
https://issues.civicrm.org/jira/browse/CRM-15964

CRM/Contact/Form/CustomData.php

index c090fbc3788e460045c04126ea107f378a31636d..80e8abfceea4d291b95b5a4123ca5b79f46f545e 100644 (file)
@@ -163,7 +163,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
     // when custom data is included in this page
     if (!empty($_POST['hidden_custom'])) {
       for ($i = 0; $i <= $_POST['hidden_custom_group_count'][$this->_groupID]; $i++) {
-        CRM_Custom_Form_CustomData::preProcess($this, NULL, NULL, $i);
+        CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_contactSubType, $i);
         CRM_Custom_Form_CustomData::buildQuickForm($this);
         CRM_Custom_Form_CustomData::setDefaultValues($this);
       }