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

Can't seem to insert contact tokens into receipt subjects

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.5.2
    • Fix Version/s: Unscheduled
    • Component/s: CiviContribute
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None

      Description

      I can't seem to insert contact tokens into receipt subjects. It always results in a Smarty error (pasted at bottom). I was able to re-create the error at http://d45.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=1&action=preview by inserting

      {contact.display_name} to http://d45.demo.civicrm.org/civicrm/admin/messageTemplates/add?action=update&id=47&reset=1


      User error: Smarty error: [in string:{strip}[TEST]{contact.display_name} {if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} {/strip} line 1]: syntax error: unrecognized tag: contact.display_name (Smarty_Compiler.class.php, line 446) in Smarty->trigger_error() (line 1094 of /srv/buildkit/build/d45/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).
      User error: Smarty error: [in string:{strip}[TEST]{contact.display_name}{if $is_pay_later} {ts}Invoice{/ts}{else}{ts}

      Receipt

      {/ts} {/if}

      - {$title}

      {/strip}

      line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590) in Smarty->trigger_error() (line 1094 of /srv/buildkit/build/d45/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michaels23 Mike Steigerwald
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: