CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom tokens in mailing labels stopped working in ver. 4.1.1.
Pages: 1 [2]

Author Topic: Custom tokens in mailing labels stopped working in ver. 4.1.1.  (Read 3055 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Custom tokens in mailing labels stopped working in ver. 4.1.1.
March 21, 2012, 07:28:01 pm
I checked the same file in an 3.4.7 install, and saw the following loop section:

Code: [Select]
  $tokens = array( );
        CRM_Utils_Hook::tokens( $tokens );
        $tokenFields = array( );
        foreach ( $tokens as $category => $catTokens ) {
            foreach ( $catTokens as $token ) {
                $tokenFields[] = $token;
            }
        }


It seems like this section of code got incorrectly changed from the 3.4.7 version.

BTW: Is this method/section called from anywhere other than the "Create Mailing Labels" batch action?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom tokens in mailing labels stopped working in ver. 4.1.1.
March 21, 2012, 08:28:38 pm

seems like that change came from Joe Murray's patch:

http://issues.civicrm.org/jira/browse/CRM-8989

can u follow up with him on that issue please

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom tokens in mailing labels stopped working in ver. 4.1.1.

This forum was archived on 2017-11-26.