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

crm_fetch_contact (and hence crm_contact_search) does not return consistent arrays

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      If a return_property is null, crm_fetch_contact will not return an element. i.e. If there is no middle name for a contact, this contact will not have a [middle_name] element. This means that the contacts might have a different number of elements. This makes creating custom CSV files a pain.

      Since return_properties are explicitly defined, it would make sense to have an element for each return property, even if null.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: