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

Invoice template function uses domain id instead of contact id to get address parts

    Details

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

      Description

      Tax invoice generation uses the wrong key from the domain structure to get the address parts.

      The effect is subtle - invisible if the domain contact id is the same as the domain id, which is usually the case for the initial domain (id 1, contact_id 1), but not if a multisite domain has domains added later, and sometimes not for the initial domain (this is how I stumbled upon the bug, however I don't know how to reproduce these conditions).

      One line fix, attached.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: