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

Smarty error when composing new CiviMail message

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2
    • Component/s: CiviMail
    • Labels:
      None

      Description

      A Smarty error occurs when you click Next after composing a new CiviMail message containing Smarty tags. Example message:

      {if

      {contact.contact_type}

      eq 'Individual'}
      Individual

      {else}
      Not Individual {/if}

      The following error occurs:

      user error: Smarty error: [in string:{if Individual eq 'Individual'} Individual {else}

      Not Individual

      {/if}

      line 1]: syntax error: (secure mode) 'Individual' not allowed in if statement (Smarty_Compiler.class.php, line 1399) in /home/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1093.

        Attachments

          Activity

            People

            • Assignee:
              sunny.sharma Sunny Sharma
              Reporter:
              marty Marty Wright
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: