CRM-12715 e-notice observed on merge page
authoreileen <eileen@fuzion.co.nz>
Thu, 30 May 2013 05:06:56 +0000 (17:06 +1200)
committereileen <eileen@fuzion.co.nz>
Mon, 10 Jun 2013 23:43:58 +0000 (11:43 +1200)
CRM/Contact/Form/Merge.php

index e35351d607f4c4e1272d1d0e01ade5dc8c012f39..5f93efbc777b520521fbff520c36efee1f5fb169 100644 (file)
@@ -193,12 +193,12 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
     $subtypes = CRM_Contact_BAO_ContactType::subTypePairs(NULL, TRUE, '');
 
     $this->assign('contact_type', $main['contact_type']);
-    if (isset($main['contact_sub_type'])) {
+    if (!empty($main['contact_sub_type'])) {
       $this->assign('main_contact_subtype',
         CRM_Utils_Array::value('contact_sub_type', $subtypes[$main['contact_sub_type'][0]])
       );
     }
-    if (isset($other['contact_sub_type'])) {
+    if (!empty($other['contact_sub_type'])) {
       $this->assign('other_contact_subtype',
         CRM_Utils_Array::value('contact_sub_type', $subtypes[$other['contact_sub_type'][0]])
       );