CRM-18501 - Mailing labels doesn't work for address type 'main'
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 May 2016 06:30:00 +0000 (12:00 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 May 2016 06:30:00 +0000 (12:00 +0530)
CRM/Contact/Form/Task/Label.php

index a144481e6bf20f359e3adc851bb90140b7c2c73b..adf8ef63683e97bb34f35c3dbfb5caaca85c7ae6 100644 (file)
@@ -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);