From: jitendrapurohit Date: Tue, 10 May 2016 06:30:00 +0000 (+0530) Subject: CRM-18501 - Mailing labels doesn't work for address type 'main' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81b22b66f79780ea5ab05afd9a375db5167e4d2d;p=civicrm-core.git CRM-18501 - Mailing labels doesn't work for address type 'main' --- 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);