From: Eileen McNaughton Date: Sat, 18 Mar 2023 01:55:10 +0000 (+1300) Subject: Remove never-true if X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81a73a4cb26e60b89ace33e3548d27304dd427c4;p=civicrm-core.git Remove never-true if isProfile is always false --- diff --git a/CRM/Dedupe/BAO/DedupeRuleGroup.php b/CRM/Dedupe/BAO/DedupeRuleGroup.php index 09c7ea6c03..0feb3f5e0a 100644 --- a/CRM/Dedupe/BAO/DedupeRuleGroup.php +++ b/CRM/Dedupe/BAO/DedupeRuleGroup.php @@ -215,27 +215,6 @@ class CRM_Dedupe_BAO_DedupeRuleGroup extends CRM_Dedupe_DAO_DedupeRuleGroup { } } - if ($isProfile) { - $fields = array_merge($fields, [ - 'group' => [ - 'title' => ts('Group(s)'), - 'name' => 'group', - ], - 'tag' => [ - 'title' => ts('Tag(s)'), - 'name' => 'tag', - ], - 'note' => [ - 'title' => ts('Note'), - 'name' => 'note', - ], - 'communication_style_id' => [ - 'title' => ts('Communication Style'), - 'name' => 'communication_style_id', - ], - ]); - } - //Sorting fields in alphabetical order(CRM-1507) $fields = CRM_Utils_Array::crmArraySortByField($fields, 'title');