From 539853b956feb63830ba67e2bc7e530274c92ed7 Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Thu, 16 Feb 2017 16:51:25 +0000 Subject: [PATCH] CRM-20039 Add Supplemental Address lines to Advanced Search --- CRM/Contact/Form/Search/Criteria.php | 2 ++ .../CRM/Contact/Form/Search/Criteria/Location.tpl | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Form/Search/Criteria.php b/CRM/Contact/Form/Search/Criteria.php index b658ee6e6d..d0f892cb6b 100644 --- a/CRM/Contact/Form/Search/Criteria.php +++ b/CRM/Contact/Form/Search/Criteria.php @@ -297,6 +297,8 @@ class CRM_Contact_Form_Search_Criteria { $elements = array( 'street_address' => array(ts('Street Address'), $attributes['street_address'], NULL, NULL), + 'supplemental_address_1' => array(ts('Supplemental Address 1'), $attributes['supplemental_address_1'], NULL, NULL), + 'supplemental_address_2' => array(ts('Supplemental Address 2'), $attributes['supplemental_address_2'], NULL, NULL), 'city' => array(ts('City'), $attributes['city'], NULL, NULL), 'postal_code' => array(ts('Postal Code'), $attributes['postal_code'], NULL, NULL), 'country' => array(ts('Country'), $attributes['country_id'], 'country', FALSE), diff --git a/templates/CRM/Contact/Form/Search/Criteria/Location.tpl b/templates/CRM/Contact/Form/Search/Criteria/Location.tpl index 0f138c7dc2..2309aaa448 100644 --- a/templates/CRM/Contact/Form/Search/Criteria/Location.tpl +++ b/templates/CRM/Contact/Form/Search/Criteria/Location.tpl @@ -49,6 +49,14 @@ {/if} +
+ {$form.supplemental_address_1.label}
+ {$form.supplemental_address_1.html} +
+
+ {$form.supplemental_address_2.label}
+ {$form.supplemental_address_2.html} +
{$form.city.label}
{$form.city.html} @@ -158,5 +166,3 @@ {/literal} {/if} - - -- 2.25.1