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

Update api call insists on mandatory fields when selecting rows by non-"id" key.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Incomplete
    • Affects Version/s: 4.2.13
    • Fix Version/s: 4.7
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      There is (rumored to be) some API logic which skips the mandatory field check when the Create is actually an Update, and that is detected by checking whether the "id" field is present in the call params.

      I'm trying to do an update on contribution_recur, but selecting a row by "trxn_id". The API does not detect that this is an update, and enforced the Create mandatory fields.

        Attachments

          Activity

            People

            • Assignee:
              adamw Adam Wight
              Reporter:
              adamw Adam Wight
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: