CRM-15726 Drupal Views soft credit relationship pulling contribution id rather than contact id

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.9, 4.5, 4.5.1, 4.5.2, 4.5.3, 4.5.4
    • Fix Version/s: 4.6
    • Component/s: CiviContribute
    • Labels:
    • Documentation Required?:
      None

      Description

      When creating a view that includes soft-credit data, it is possible to create a relationship pulling in the data of the contact that was soft-credited. However, due to this bug, the id that was referenced for the contact was actually the contribution id, so when contact data was pulled in, it was showing the wrong contacts.

        Attachments

          Activity

          [CRM-15726] Drupal Views soft credit relationship pulling contribution id rather than contact id
          Joseph Bayly added a comment -

          I'm going to lie and say it only took me 10 minutes to fix this.

          Ok, this is my first patch for civicrm, I think. I think if I had filed the bug, Lobo would have said, "you're welcome to submit a patch for that." So I'm pretty sure I'm welcome to do this.

          Please let me know if it works, or if I did anything wrong. It took me hours to sort through the code and find the right fix. In fact, I've spent hours on this bug numerous times in the past year or so.

          Then figuring out how to create the patch... Yikes.

          -Joseph

          Donald A. Lobo added a comment -

          thanx for spending the time to sort thru the code and figuring out how to create a patch

          next time, please submit a "Pull request" on github with your changes

          Coleman Watts added a comment -

          Yes thanks Joseph for the patch.
          FYI create a pull-request like so: https://github.com/civicrm/civicrm-drupal/pull/208

            People

            • Assignee:
              Coleman Watts
              Reporter:
              Joseph Bayly

              Dates

              • Created:
                Updated:
                Resolved: