get conflict column disaply results with line breaks, and force enable searches for...
authordeepak-srivastava <deepak.srivastava.0303@gmail.com>
Wed, 22 Jul 2015 11:05:31 +0000 (12:05 +0100)
committerdeepak-srivastava <deepak.srivastava.0303@gmail.com>
Sat, 8 Aug 2015 20:53:02 +0000 (21:53 +0100)
CRM/Contact/Page/AJAX.php
templates/CRM/Contact/Page/DedupeFind.tpl

index dc7ea9185156867cffe2125891337b07d98eb070..50e0d31ccea67f663ca110e22b096724e125d103 100644 (file)
@@ -836,7 +836,7 @@ LIMIT {$offset}, {$rowCount}
       $searchRows[$count]['dst_email'] = CRM_Utils_Array::value('dst_email', $pairInfo);
       $searchRows[$count]['dst_street'] = CRM_Utils_Array::value('dst_street', $pairInfo);
       $searchRows[$count]['dst_postcode'] = CRM_Utils_Array::value('dst_postcode', $pairInfo);
-      $searchRows[$count]['conflicts'] = CRM_Utils_Array::value('conflicts', $pair);
+      $searchRows[$count]['conflicts'] = str_replace("',", "',<br/>", CRM_Utils_Array::value('conflicts', $pair));
       $searchRows[$count]['weight'] = CRM_Utils_Array::value('weight', $pair);
 
       if (!empty($pairInfo['data']['canMerge'])) {
@@ -846,7 +846,7 @@ LIMIT {$offset}, {$rowCount}
         }
 
         $searchRows[$count]['actions']  = "<a class='crm-dedupe-flip' href='#' data-pnid={$pairInfo['prevnext_id']}>" . ts('flip') . "</a>&nbsp;|&nbsp;";
-        $searchRows[$count]['actions'] = CRM_Utils_System::href(ts('merge'), 'civicrm/contact/merge', $mergeParams);
+        $searchRows[$count]['actions'] .= CRM_Utils_System::href(ts('merge'), 'civicrm/contact/merge', $mergeParams);
         $searchRows[$count]['actions'] .= "&nbsp;|&nbsp;<a id='notDuplicate' href='#' onClick=\"processDupes( {$pairInfo['entity_id1']}, {$pairInfo['entity_id2']}, 'dupe-nondupe', 'dupe-listing'); return false;\">" . ts('not a duplicate') . "</a>";
       }
       else {
index c3e11010c5ad250134492f7387d268ace89ee7ce..003f95b0490e63496677384914a35c055983ecf3 100644 (file)
@@ -196,6 +196,7 @@ CRM.$(function($) {
   $('#dupePairs').DataTable({
     //"scrollX": true, // doesn't work with hover popup for for icons
     "lengthMenu": [[10, 25, 50, 100, 1000, 2000, -1], [10, 25, 50, 100, 1000, 2000, "All"]],
+    "searching" : true,
     "dom": 'flrtip',
     "processing": true,
     "serverSide": true,