From 81b22b66f79780ea5ab05afd9a375db5167e4d2d Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 10 May 2016 12:00:00 +0530 Subject: [PATCH] CRM-18501 - Mailing labels doesn't work for address type 'main' --- CRM/Contact/Form/Task/Label.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Task/Label.php b/CRM/Contact/Form/Task/Label.php index a144481e6b..adf8ef6368 100644 --- a/CRM/Contact/Form/Task/Label.php +++ b/CRM/Contact/Form/Task/Label.php @@ -169,7 +169,7 @@ class CRM_Contact_Form_Task_Label extends CRM_Contact_Form_Task { $locName = $locType[$fv['location_type_id']]; $location = array('location' => array("{$locName}" => $address)); $returnProperties = array_merge($returnProperties, $location); - $params[] = array('location_type', '=', array($fv['location_type_id'] => 1), 0, 0); + $params[] = array('location_type', '=', array(1 => $fv['location_type_id']), 0, 0); } else { $returnProperties = array_merge($returnProperties, $address); -- 2.25.1