CRM-16990: Custom fields are NOT being saved for some component custom data (activiti...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 09:55:38 +0000 (15:25 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 09:55:38 +0000 (15:25 +0530)
----------------------------------------
* CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...)
  https://issues.civicrm.org/jira/browse/CRM-16990

CRM/Case/Form/Case.php

index 22b9875ebc0d402c3e9fc714f55888ec75fd9bc1..392aaadaf2af3fc06feac22ab2701dc87ef9176d 100644 (file)
@@ -181,7 +181,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
 
     // for case custom fields to populate with defaults
     if (!empty($_POST['hidden_custom'])) {
-      CRM_Custom_Form_CustomData::preProcess($this);
+      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_caseTypeId, 1, 'Case', $this->_caseId);
       CRM_Custom_Form_CustomData::buildQuickForm($this);
     }