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

Contribution soft credit does not save for different contact type

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The following error occurred when we tried to soft credit to a contact in edit contribution

      Contribution is made by a individual contact for a contribution page.

      This contribution page has initially set-up for 'Honoree' section enabled with a profile and later this 'Honoree' section disabled.

      The above action will create an entry in 'civicrm_uf_join' table with module as 'soft_credit' and entity_table as 'civicrm_contribution_page' with is_active column 1 as first and later 0(while honoree section disabled)

      And let's say this profile has been created for contact type of 'Indiviual'.

      Now when we try to soft credit to a contact with the type of 'Organization' throws validation error. It is because the current code checks profile type against type of contact to be soft credited to, even the contribution page is not enabled 'Honoree' section.

      fix:- Type validation should be happening if 'Honoree' section is enabled for contribution page.

      .

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              Kajakaran Kajakaran Balakrishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: