Skip to content

Commit

Permalink
Merge pull request #13282 from aydun/custom_value_zero
Browse files Browse the repository at this point in the history
Format token custom fields with value of 0 correctly
  • Loading branch information
seamuslee001 authored Jan 3, 2019
2 parents 88db78b + b5654a0 commit 3e66a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Token/TokenRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function customToken($entity, $customFieldID, $entityID) {
));

// format the raw custom field value into proper display value
if ($fieldValue) {
if (isset($fieldValue)) {
$fieldValue = \CRM_Core_BAO_CustomField::displayValue($fieldValue, $customFieldID);
}

Expand Down

0 comments on commit 3e66a9d

Please sign in to comment.