From 466e6ca58aedd4d8e8bfefbd0cd39bfafff7b8b5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 26 Aug 2015 16:45:00 -0400 Subject: [PATCH] CRM-16990 - Fix saving custom values --- CRM/Custom/Form/CustomDataByType.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Custom/Form/CustomDataByType.php b/CRM/Custom/Form/CustomDataByType.php index da5f6544e6..6d8d46214b 100644 --- a/CRM/Custom/Form/CustomDataByType.php +++ b/CRM/Custom/Form/CustomDataByType.php @@ -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; } /** -- 2.25.1