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

civicrm_contribution_add: 'contribution_type' param overrides 'contribution_type_id'

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.5, 3.1.6, 3.2
    • Fix Version/s: 3.2.2
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      It is an undocumented feature that civicrm_contribution_add will accept 'contribution_type' as a key containing the string name of a contribution type.

      This wouldn't be a problem, except when both 'contribution_type' and 'contribution_type_id' keys exist, the string designation overrides the ID designation. This seems a bad idea to me, but in any case, this should be documented if it is intentional or otherwise necessary.

        Attachments

          Activity

            People

            • Assignee:
              sunny.sharma Sunny Sharma
              Reporter:
              mchapman2000 Matt Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: