Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14245

Token call from membership PDF action does not provide the membership id to the tokens

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.4.4
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Tthe token gets called from pdf but it doesn't know what token it is being called on. The best thing I can think of without a major refactor (over-due but not today) of token code is to allow the calling function to pass in additional params to CRM_Utils_Token::getTokenDetails which is the function responsible for 'filling out' the token details - including calling other functions. That way it could merge the passed params for each contact into the retrieved params before calling the hook

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: