From: eileen Date: Wed, 10 Apr 2013 04:57:31 +0000 (+1200) Subject: CRM-12317 fix domain tokens X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3470b792c154445d299cef6921e781495389723;p=civicrm-core.git CRM-12317 fix domain tokens --- diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index c5349cc071..6f17047201 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -81,6 +81,8 @@ class CRM_Utils_Token { 'phone', 'address', 'email', + 'id', + 'description', ), 'subscribe' => array( 'group' ), 'unsubscribe' => array( 'group' ), @@ -274,7 +276,7 @@ class CRM_Utils_Token { $addressCache[$cache_key] = $value; } } - elseif ($token == 'name' || $token == 'id') { + elseif ($token == 'name' || $token == 'id' || $token == 'description') { $value = $domain->$token; } elseif ($token == 'phone' || $token == 'email') {