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

          [CRM-15859] relationship API does not return start_date and end_date
          Johan Vervloet added a comment -

          Sorry, you can close this issue. If the relation actually has a start and end date, the API will show it. :-$

            People

            • Assignee:
              Unassigned
              Reporter:
              Johan Vervloet

              Dates

              • Created:
                Updated:
                Resolved: