Merge pull request #23581 from colemanw/removeUnused
[civicrm-core.git] / CRM / Contact / Tokens.php
index 5742945dd343bba3002f48515e924e709ecba38d..731b2f330ceb8e8d689690e34c44ba9c83e3cf49 100644 (file)
@@ -316,7 +316,7 @@ class CRM_Contact_Tokens extends CRM_Core_EntityTokens {
             ->tokens('contact', $token, "cs={$cs}");
         }
         elseif ($token === 'signature_html') {
-          $row->format('text/html')->tokens('contact', $token, html_entity_decode($row->context['contact'][$token]));
+          $row->format('text/html')->tokens('contact', $token, html_entity_decode($this->getFieldValue($row, $token)));
         }
         else {
           parent::evaluateToken($row, $this->entity, $token, $row->context['contact']);