Details
Description
This affects both single- and multi-value tabbed custom data, but not the new tabbed with table or inline custom data. I've duplicated this on the 4.5 and 4.6 alpha demo sites. Here's the fix I put together, but I don't think this exactly how it should be done, partly because I don't know the difference between the $form->_subType and $form->_contactSubType in this case.
diff --git a/CRM/Custom/Form/CustomData.php b/CRM/Custom/Form/CustomData.php
index 84caed3..3484b0e 100644
— a/CRM/Custom/Form/CustomData.php
+++ b/CRM/Custom/Form/CustomData.php
@@ -114,6 +114,10 @@ class CRM_Custom_Form_CustomData {
$getCachedTree = isset($form->_getCachedTree) ? $form->_getCachedTree : TRUE;
$subType = $form->_subType;
+
+ if (isset($form->_contactSubType) && $subType == NULL)
if (!is_array($subType) && strstr($subType, CRM_Core_DAO::VALUE_SEPARATOR))
{ $subType = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, ',', trim($subType, CRM_Core_DAO::VALUE_SEPARATOR)); }