CRM-16990 - Fix saving custom values
authorColeman Watts <coleman@civicrm.org>
Wed, 26 Aug 2015 20:45:00 +0000 (16:45 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 26 Aug 2015 20:45:00 +0000 (16:45 -0400)
CRM/Custom/Form/CustomDataByType.php

index da5f6544e640d11ed93631b2477482e3a4e3ae2a..6d8d46214be0410ff5184087f9cce05488fbf548 100644 (file)
@@ -50,14 +50,13 @@ class CRM_Custom_Form_CustomDataByType extends CRM_Core_Form {
     $this->assign('cdType', FALSE);
     $this->assign('cgCount', $this->_groupCount);
 
-    // Carry qf key, since this form is not inheriting core form (unclear is still the case).
-    if ($qfKey = CRM_Utils_Request::retrieve('qfKey', 'String')) {
-      $this->assign('qfKey', $qfKey);
-    }
     if (!is_array($this->_subType) && strstr($this->_subType, CRM_Core_DAO::VALUE_SEPARATOR)) {
       $this->_subType = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, ',', trim($this->_subType, CRM_Core_DAO::VALUE_SEPARATOR));
     }
     CRM_Custom_Form_CustomData::setGroupTree($this, $this->_subType, NULL, $this->_groupID);
+
+    $this->assign('suppressForm', TRUE);
+    $this->controller->_generateQFKey = FALSE;
   }
 
   /**