From 4959114b4c93a578c38f21034ed708e6010ead50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Sch=C3=BCttler?= Date: Mon, 24 Oct 2016 14:36:52 +0200 Subject: [PATCH] CRM-19559 - CRM_Contact_BAO_Contact_Utils - Fix handling of postal_code in contactDetails() --- CRM/Contact/BAO/Contact/Utils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index 3339de232a..030b72635a 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -717,6 +717,7 @@ LEFT JOIN civicrm_email ce ON ( ce.contact_id=c.id AND ce.is_primary = 1 ) $value = (in_array($property, array( 'city', 'street_address', + 'postal_code', ))) ? 'address' : $property; switch ($property) { case 'sort_name': @@ -745,6 +746,7 @@ INNER JOIN civicrm_contact contact_target ON ( contact_target.id = act.contact_i case 'phone': case 'city': case 'street_address': + case 'postal_code': $select[] = "$property as $property"; // Grab target contact properties if this is for activity if ($componentName == 'Activity') { -- 2.25.1