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

relationship API does not return start_date and end_date

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.5.5, 4.6
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Documentation Required?:
      None

      Description

      If I try to fetch the start date and end date of a relationship, the API doesn't return those dates. E.g. with drush on the test data:

      drush cvapi Relationship.get sequential=1 contact_id_a=111 return="start_date,end_date"

      returns

      Array
      (
      [is_error] => 0
      [version] => 3
      [count] => 5
      [values] => Array
      (
      [0] => Array
      (
      [id] => 22
      [contact_id_a] => 111
      )

      [1] => Array
      (
      [id] => 24
      [contact_id_a] => 111
      )

      [2] => Array
      (
      [id] => 25
      [contact_id_a] => 111
      )

      [3] => Array
      (
      [id] => 28
      [contact_id_a] => 111
      )

      [4] => Array
      (
      [id] => 204
      [contact_id_a] => 111
      )

      )

      )

      (as in: there are no dates )

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johanv Johan Vervloet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: