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

Public Mailing View page doesn't render hook tokens

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.4
    • Component/s: None
    • Labels:
      None

      Description

      Generic hook tokens are inaccessible from the mailing view page when the contact is not logged in. However, some tokens (e.g our token to render a drupal view of civimail or drupal content within the body of a newsletter) don't render in view mode.

      I have & will submit a PR for a patch that fixes this. However, it works by calling the token hooks with contact_id = 0. This could upset some custom hooks - e.g if they were calling civicrm_api3('contact', 'getvalue', array('contact_id' => $contactID) without a try /catch block.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: