Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. 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

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              keith@wellebee.com Keith Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: