From 01a93ecd024ebc1f9aa7969d2f4de2c50b2ed4f1 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 29 Apr 2013 08:29:15 -0700 Subject: [PATCH] CRM-12449 ---------------------------------------- * CRM-12449: On the import page, the dedupe rules select isn't using the rules' names http://issues.civicrm.org/jira/browse/CRM-12449 --- CRM/Dedupe/BAO/RuleGroup.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CRM/Dedupe/BAO/RuleGroup.php b/CRM/Dedupe/BAO/RuleGroup.php index 01298f45eb..1c2e1a8431 100644 --- a/CRM/Dedupe/BAO/RuleGroup.php +++ b/CRM/Dedupe/BAO/RuleGroup.php @@ -411,12 +411,11 @@ class CRM_Dedupe_BAO_RuleGroup extends CRM_Dedupe_DAO_RuleGroup { $dao->find(); $result = array(); while ($dao->fetch()) { - if (!empty($dao->name)) { - $name = "{$dao->name} - {$dao->used}"; - } - else { - $name = "{$dao->contact_type} - {$dao->used}"; - } + $title = + !empty($dao->title) ? $dao->title : + (!empty($dao->name) ? $dao->name : $dao->contact_type); + + $name = "$title - {$dao->used}"; $result[$dao->id] = $name; } return $result; -- 2.25.1