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

Errors in 4.6 fromsmarty calls that were valid in the past

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.7
    • Fix Version/s: 4.6.9
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Core Team Funds

      Description

      I'm not 100% sure if this smarty syntax has been outlawed or Contribute Query is just being overzealous but this smarty call was valid in 4.4

      {crmAPI entity="relationship" action="get" var="relationships" contact_id=$contactId} {if $relationships.values} {foreach from=$relationships.values item=rel}

      // do stuff

      {/foreach} {/if}

      In 4.6 we get the error "We did not recognize the search field: var. Please check and fix your contribution related smart groups."

      Same for the field action

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: