Format custom fields with value of 0 correctly
authorAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 15 Aug 2018 19:20:09 +0000 (20:20 +0100)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 14 Dec 2018 15:38:10 +0000 (15:38 +0000)
Civi/Token/TokenRow.php

index 4f186d3d5c1ea9ccf3d84806cc76e7b8d834554c..5a223beb33a33f2657111146053c53918b357994 100644 (file)
@@ -142,7 +142,7 @@ class TokenRow {
     ));
 
     // format the raw custom field value into proper display value
-    if ($fieldValue) {
+    if (isset($fieldValue)) {
       $fieldValue = \CRM_Core_BAO_CustomField::displayValue($fieldValue, $customFieldID);
     }