CRM-15070 Fix for defualt value.
authorRohan Katkar <rohan.katkar@webaccess.co.in>
Thu, 7 Aug 2014 11:30:45 +0000 (17:00 +0530)
committerRohan Katkar <rohan.katkar@webaccess.co.in>
Thu, 7 Aug 2014 11:30:45 +0000 (17:00 +0530)
CRM/Core/BAO/UFGroup.php

index 84edaa919cf2325f449e09c745d8f6e1c5389ca8..c213ac914c1477f418d01e338f96b8583e8f0cec 100644 (file)
@@ -2318,6 +2318,9 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
               }
             }
           }
+          elseif ($name == 'contact_sub_type') {
+            $defaults[$fldName] = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($details[$name], CRM_Core_DAO::VALUE_SEPARATOR));
+          }
           elseif ($name == 'world_region') {
             $defaults[$fldName] = $details['worldregion_id'];
           }