From 845cbffcf9eb1bae5b425aee11e9167f1431d5aa Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 20 Apr 2020 17:38:19 -0400 Subject: [PATCH] dev/core#1722 change where we set field tpl --- CRM/Contact/Form/Search/Criteria.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/Form/Search/Criteria.php b/CRM/Contact/Form/Search/Criteria.php index cccdd84193..0413ab4dde 100644 --- a/CRM/Contact/Form/Search/Criteria.php +++ b/CRM/Contact/Form/Search/Criteria.php @@ -244,7 +244,8 @@ class CRM_Contact_Form_Search_Criteria { */ public static function getSearchFieldMetadata() { $fields = [ - 'sort_name' => ['title' => ts('Complete OR Partial Name'), 'template_grouping' => 'basic'], + 'sort_name' => ['title' => ts('Complete OR Partial Name'), 'template_grouping' => 'basic', + 'template' => 'CRM/Contact/Form/Search/Criteria/Fields/sort_name.tpl',], 'first_name' => ['template_grouping' => 'basic'], 'last_name' => ['template_grouping' => 'basic'], 'email' => ['title' => ts('Complete OR Partial Email'), 'entity' => 'Email', 'template_grouping' => 'basic'], @@ -318,9 +319,7 @@ class CRM_Contact_Form_Search_Criteria { $userFramework = CRM_Core_Config::singleton()->userFramework; return [ // For now an empty array is still left in place for ordering. - 'sort_name' => [ - 'template' => 'CRM/Contact/Form/Search/Criteria/Fields/sort_name.tpl', - ], + 'sort_name' => [], 'email' => ['name' => 'email'], 'contact_type' => ['name' => 'contact_type'], 'group' => [ -- 2.25.1