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

The crm_create_location API call should convert everything to arrays

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      Description

      Currently, if crm_create_location receives any objects in the new location values, it chokes. This could easily be avoided by casting the values to arrays before using array functions on them.

      For easy reference:
      $arr = (array) $obj;

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              davidstrauss David Strauss
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: