From da3afd4af61b6b76f2844b00a8f5b057ec21ff14 Mon Sep 17 00:00:00 2001 From: deepak-srivastava Date: Wed, 22 Jul 2015 12:05:31 +0100 Subject: [PATCH] get conflict column disaply results with line breaks, and force enable searches for datatables --- CRM/Contact/Page/AJAX.php | 4 ++-- templates/CRM/Contact/Page/DedupeFind.tpl | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index dc7ea91851..50e0d31cce 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -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("',", "',
", 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'] = "" . ts('flip') . " | "; - $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'] .= " | " . ts('not a duplicate') . ""; } else { diff --git a/templates/CRM/Contact/Page/DedupeFind.tpl b/templates/CRM/Contact/Page/DedupeFind.tpl index c3e11010c5..003f95b049 100644 --- a/templates/CRM/Contact/Page/DedupeFind.tpl +++ b/templates/CRM/Contact/Page/DedupeFind.tpl @@ -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, -- 2.25.1