From e84be4df3cbfd308b08a184c5b661b0a6e8dade6 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 18 Jul 2019 12:45:42 -0400 Subject: [PATCH] core#1130 - allow search views to show contact subtype --- CRM/Contact/Selector.php | 1 - templates/CRM/Contact/Form/Selector.tpl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php index ab894330c7..0f13126fa0 100644 --- a/CRM/Contact/Selector.php +++ b/CRM/Contact/Selector.php @@ -842,7 +842,6 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se ); $row['contact_type_orig'] = $result->contact_sub_type ? $result->contact_sub_type : $result->contact_type; - $row['contact_sub_type'] = $result->contact_sub_type ? CRM_Contact_BAO_ContactType::contactTypePairs(FALSE, $result->contact_sub_type, ', ') : $result->contact_sub_type; $row['contact_id'] = $result->contact_id; $row['sort_name'] = $result->sort_name; // Surely this if should be if NOT - otherwise it's just wierd. diff --git a/templates/CRM/Contact/Form/Selector.tpl b/templates/CRM/Contact/Form/Selector.tpl index 930d58a020..dc403f5a62 100644 --- a/templates/CRM/Contact/Form/Selector.tpl +++ b/templates/CRM/Contact/Form/Selector.tpl @@ -66,7 +66,7 @@ {$row.contact_type} {$row.sort_name} {foreach from=$row item=value key=key} - {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "contact_type_orig") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id")and ($key neq "contact_sub_type")} + {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "contact_type_orig") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id")} {if $key EQ "household_income_total" } {$value|crmMoney} @@ -133,7 +133,7 @@ {else} {foreach from=$row item=value key=key} - {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "contact_sub_type") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id") and ($key neq "contact_type_orig")} + {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id") and ($key neq "contact_type_orig")} {$value}  {/if} {/foreach} -- 2.25.1