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

_civicrm_api3_basic_get fails when id has a uniqueName

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      The API throws a fatal error if the _civicrm_api3_basic_get method is called on an id field that has a uniqueName in the schema.

      Civi attempts to look up the correct name of the field and fails - the code that triggers the bug is at
      sites/all/modules/civicrm/api/v3/utils.php._civicrm_api3_build_fields_array:704 which reads:
      if(!CRM_Utils_Array::value('id', $fields))

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eileen Eileen McNaughton
                Reporter:
                palantejon Jon K Goldberg
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: