Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

civitoken_civicrm_tokens removes tokens from other extensions #22

Closed
kainuk opened this issue Apr 4, 2018 · 4 comments
Closed

civitoken_civicrm_tokens removes tokens from other extensions #22

kainuk opened this issue Apr 4, 2018 · 4 comments

Comments

@kainuk
Copy link
Contributor

kainuk commented Apr 4, 2018

In civitoken.php the lines

      if (!in_array($key, $setting['civitoken_enabled_tokens'])) {
         unset($tokens[$category][$key]);
      }

are a bit too rigorous. It also removes tokens from other extensions.

@eileenmcnaughton
Copy link
Owner

ouch - open to a patch on that

kainuk added a commit to kainuk/nz.co.fuzion.civitoken that referenced this issue Apr 4, 2018
kainuk added a commit to kainuk/nz.co.fuzion.civitoken that referenced this issue Apr 4, 2018
eileenmcnaughton added a commit that referenced this issue Apr 4, 2018
Issue #22 use a localTokens variable to prevent removal of tokens of …
@mecachisenros
Copy link
Contributor

This seems like it's fixed.

@eileenmcnaughton
Copy link
Owner

oh yes -but not in a released version - I'll drop a release

@eileenmcnaughton
Copy link
Owner

Pretty sure this was resolved - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants