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

Custom fields not shown on exported contribution receipt

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.7
    • Component/s: CiviContribute
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      When creating a (pdf or mail) receipt from a contribution (Search contribution, action 'Print or email contribution receipts') the custom fields and their values are not shown on the receipt.
      When we look at the template however those should be added in following snippet

       {if $customGroup}
            {foreach from=$customGroup item=value key=customName}
             <tr>
              <th {$headerStyle}>
               {$customName}
              </th>
             </tr>
             {foreach from=$value item=v key=n}
              <tr>
               <td {$labelStyle}>
                {$n}
               </td>
               <td {$valueStyle}>
                {$v}
               </td>
              </tr>
             {/foreach}
            {/foreach}
      

      At first look this is caused because the $customgroup variable is not assigned.
      I'll try to roll a PR.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mallezie Tim Mallezie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: