From 0f8d387d78ff828641b227b38aa5c94765abecd1 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 5 Dec 2014 16:56:24 +0530 Subject: [PATCH] CRM-15691 fix for Mailing Labels pulling incorrect address when location type other than Home or Primary requested --- CRM/Contact/Form/Task/Label.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contact/Form/Task/Label.php b/CRM/Contact/Form/Task/Label.php index c920aa6bda..20d4eb19c9 100644 --- a/CRM/Contact/Form/Task/Label.php +++ b/CRM/Contact/Form/Task/Label.php @@ -266,6 +266,7 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task { continue; } + $contact = $contact[$locName] + $contact; unset($contact[$locName]); if (!empty($contact['county_id'])) { -- 2.25.1