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

Fix php notice when is_primary is not set for printpdf invoice

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.21
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Currently the code unsets is_primary and there is a comment stating that a bug in earlier versions caused is_primary to be set multiple times.  But the calling code expects the field is_primary to be available, so the better option is to set is_primary=0 rather than unsetting it from the array.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattwire Matthew Wire
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: