CRM-12247 Missing mailing tokens in text messages generated from html source

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.8
    • Fix Version/s: 4.3.0
    • Component/s: CiviMail
    • Labels:
      None

      Description

      For html-only emails, CRM_Mailing_BAO_Mailing::getTemplates() creates a text template from the html source. In this case getTokens() doesn't find any text tokens because there is no text body to pull them from.

      This bug causes mailing tokens (e.g.,

      {mailing.viewUrl}

      ) to remain unsubstituted in text-only emails generated from html source.

      Patch attached.

        Attachments

          Activity

          [CRM-12247] Missing mailing tokens in text messages generated from html source
          Donald A. Lobo added a comment -

          keith:

          we've migrated to github, so if you can would be great to create an issue and then issue a pull request for it

          thanx

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Keith Morgan

              Dates

              • Created:
                Updated:
                Resolved: