Skip to content

Commit

Permalink
Merge pull request #8334 from jitendrapurohit/CRM-18501
Browse files Browse the repository at this point in the history
CRM-18501 - Mailing labels doesn't work for address type 'main'
  • Loading branch information
monishdeb committed May 11, 2016
2 parents 2602162 + 81b22b6 commit 1a1405c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/Form/Task/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function postProcess() {
$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);
Expand Down

0 comments on commit 1a1405c

Please sign in to comment.