Removal of Notice, warning and Communication label Fix
authorCiviCRM <info@civicrm.org>
Thu, 17 Jul 2014 14:52:10 +0000 (20:22 +0530)
committerCiviCRM <info@civicrm.org>
Thu, 17 Jul 2014 14:52:10 +0000 (20:22 +0530)
CRM/Contact/Form/Merge.php
CRM/Dedupe/Merger.php
templates/CRM/Contact/Form/Merge.tpl

index c0aa640e38caf1a08ae2c4d46ee9bec203ed5279..7339871684ef494c7e373b9fe13ed37a6894a0c0 100644 (file)
@@ -195,12 +195,6 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
     }
 
     $this->assign('contact_type', $main['contact_type']);
-    if (!empty($main['contact_sub_type'])) {
-      $this->assign('main_contact_subtype', $main['contact_sub_type_display']);
-    }
-    if (!empty($other['contact_sub_type'])) {
-      $this->assign('other_contact_subtype', $other['contact_sub_type_display']);
-    }
     $this->assign('main_name', $main['display_name']);
     $this->assign('other_name', $other['display_name']);
     $this->assign('main_cid', $main['contact_id']);
index 2e975a321784213e41f5309509d44cb438ea60c5..7057ad3555aa76139b5a3a8a63e594c3b54178e7 100644 (file)
@@ -827,6 +827,7 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
       $specialValues[$moniker] = array(
         'preferred_communication_method' => $value,
         'contact_sub_type' => $value,
+        'communication_style_id' => $value,
       );
 
       if (!empty($contact['preferred_communication_method'])){
@@ -855,6 +856,10 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
         }
         $contact['contact_sub_type_display'] = $specialValues[$moniker]['contact_sub_type_display'] = implode(', ', $subtypes);
       }
+
+      if (!empty($contact['communication_style'])) {
+        $specialValues[$moniker]['communication_style_id_display'] = $contact['communication_style'];
+      }
     }
 
     static $optionValueFields = array();
@@ -1361,6 +1366,9 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
     foreach ($submitted as $key => $value) {
       if (substr($key, 0, 7) == 'custom_') {
         $fid = (int) substr($key, 7);
+        if (empty($cFields[$fid])) {
+          continue;
+        }
         $htmlType = $cFields[$fid]['attributes']['html_type'];
         switch ($htmlType) {
           case 'File':
index 9fcec8ba0a6455ac934ecfe4a10ecfdb4977129d..f74e218b4ad4f6adeda853fbd87c3a61e5fd5211 100644 (file)
 The user record associated with the duplicate contact will not be deleted, but will be un-linked from the associated contact record (which will be deleted).
 You will need to manually delete that user (click on the link to open Drupal User account in new screen). You may need to give thought to how you handle any content or contents associated with that user.{/ts}</strong></p>
     {/if}
-    {if $other_contact_subtype}
-      <p><strong>The duplicate contact (the one that will be deleted) is a <em>{$other_contact_subtype}</em>. Any data related to this will be lost forever (there is no undo) if you complete the merge.</strong></p>
-    {/if}
 </div>
 
 <div class="crm-submit-buttons">{if $prev}<a href="{$prev}" class="button"><span>{ts}<< Prev{/ts}</span></a>{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}{if $next}<a href="{$next}" class="button"><span>{ts}Next >>{/ts}</span></a>{/if}</div>